Shoppingover Posted April 8, 2015 Share Posted April 8, 2015 Hi My Prestashop stores Email function stopped working since I updated to latest version v3.5.1. Till then it was working fine. 1. Now when I send a test mail under Advanced Parameters-> Send test mail to email id at my own domain it says A test email has been sent to the email address you provided. But mail never comes to our inbox. 2. If we send test mail under Advanced Parameters-> Send test mail to email id at gmail or some else it says Error: Please check your configurationSending failed using mail() as PHP's default mail() function returned boolean FALSE. 3. If we send email to any customer from order page in backoffice it says: An error occurred while sending an email to the customer. Solutions Tried so far: 1. Uninstall & re install the module - Not solved 2. Deleted the module from backoffice & then installed older Version 2.5 - Still same issue. 3. Updated the newly installed module - Not solved. Any one please help us. Link to comment Share on other sites More sharing options...
prestashopninja Posted April 8, 2015 Share Posted April 8, 2015 Hi, Could you write down the values on BO email settings (BO:: Advanced Parameters -> Email) along with your PrestaShop version? Link to comment Share on other sites More sharing options...
Shoppingover Posted April 9, 2015 Author Share Posted April 9, 2015 Hi Dear It's PrestaShop™ 1.6.0.6 . Values on BO email settings (BO:: Advanced Parameters -> Email) Use PHP's mail() function (recommended; works in most cases). Please help us. Link to comment Share on other sites More sharing options...
prestashopninja Posted April 9, 2015 Share Posted April 9, 2015 (edited) Hi, Then, please check that PHP's email functionality is working well. Please copy the code below and paste it into an empty text file. Change "[email protected]" to your actual email address, where you want to receive your emails. Then, save the file as "mailTest.php" and upload it to your server, to the top level directory where you have your PrestaShop installation and call it via your browser. Assuming your webshop is at http://myprestashopdomain.com, you'll want to call it a http://myprestashopdomain.com/mailTest.php If you'll receive the test email, everything's fine with PHP's email functionality and something's wrong with PrestaShop settings. Otherwise, it's likely a server problem. I hope this helps. <?php $to = '[email protected]'; $subject = 'Test email'; $message = 'This is a test email message'; $headers = 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers, '[email protected]'); Edited April 9, 2015 by prestashopninja (see edit history) Link to comment Share on other sites More sharing options...
Shoppingover Posted April 10, 2015 Author Share Posted April 10, 2015 Hi Dear I have followed the steps mentioned exactly but mail was not delivered to my mailbox. Attached is the mailtest.PHP. This was called at URL http://shoppingover.com/admin1/mailtest.php Link to comment Share on other sites More sharing options...
prestashopninja Posted April 10, 2015 Share Posted April 10, 2015 Hi, Your link returns 404. If you didn't delete the PHP script there, probably the URL you called is wrong. If you run it with success and didn't get an email, this tells that PHP cannot actually send mail, due to an SMTP failure. In this case, you will need to contact your hosting company. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now