Jump to content

Mail alerts Module not working after update to v3.5.1


Recommended Posts

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 configuration
Sending 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

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 by prestashopninja (see edit history)
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...