If the administrator doesn’t receive emails with order notifications, here’s what can be done:
Check whether the standard PHP mail
function works properly on your server:
Create a mail.php file in the root directory of your CS-Cart installation.
Enter the following content there:
<?php
$to = '[email protected]';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$result = mail($to, $subject, $message, $headers);
print $result;
?>
Replace order@domain.com with the e-mail from the Order department e-mail address field.
The test email will have your_email@domain.com as the value of the From field.
We recommend that you use the email of the order department here as well, as CS-Cart inserts it in the From fields while sending order notifications. Moreover, many hosting companies reject emails if the value of the From field is from some other domain or invalid.
Save the file.
Run this script by opening the following link: http://www.your_domain.com/your_cscart_directory/mail.php.
Replace your_domain.com with the name of your domain, and your_cscart_directory with the name of the directory where CS-Cart is installed on your server as seen from the Web (if applicable). For example:
The script will attempt to send an e-mail from the order@domain.com to your_email@domain.com.
Check the results.
mail
PHP function works correctly on your server. If the email wasn’t received, please contact your mail server administrator to determine the cause of the problem and solve it. Here are some possible causes:mail
PHP function does not work on your server. Contact your server administrator in this case.Questions & Feedback
Have any questions that weren't answered here? Need help with solving a problem in your online store? Want to report a bug in our software? Find out how to contact us.