Troubleshooting PrestaShop Email Problems

Here a couple of things you can try when troubleshooting PrestaShop Email problems.

1) “From” field doesn’t match your domain.

Make the following code change:

In /tools/swift/Swift/Message.php line #79
Change
$this->setFrom(“”);

To
$this->setFrom(“youremail@yourdomainname.com”);

In /tools/swift/Swift.php after line 370
if (!($has_reply_to = $message->getReplyTo())) $message->setReplyTo($from);

Add the following code:
if (!$has_reply_to[0])
$message->setReplyTo($from->getAddress());

2) Incompatible additional headers.
If solution 1) did not fix the email problem try this:

In /tools/swift/Swift/Plugin/MailSend.php line # 159
Add
$params = “”;

Original Source: http://www.presto-changeo.com/en/content/9-fix-email-problems

Useful Resources:

http://stackoverflow.com/questions/11347454/php-mail-just-suddenly-stop-working

https://www.prestashop.com/forums/topic/193911-please-help-sending-failed-using-mail-as-phps-default-mail-function-returned-boolean-false/

Was this article helpful?

Related Articles