josecerejo Posted June 11, 2015 Share Posted June 11, 2015 Hi all, My version in Prestashop is 1.6.0.14. The mailalerts module at this point is not sending me an email when the user purchases a product and can not figure out why. I've done the debug and there is no error. I've done which are necessary changes to the server to be everything right. The only thing missing is update 3 modules but I do not think that's why it will give error. Does anyone know why this happens? thank you Link to comment Share on other sites More sharing options...
benyben Posted June 12, 2015 Share Posted June 12, 2015 There are a few reasons why Prestashop cannot send emails from your server, the most common ones are: "From" field doesn't match your domain.Incompatible additional headers.Below are solutions to both: In /tools/swift/Swift/Message.php line #79 Change $this->setFrom(""); To $this->setFrom("[email protected]"); 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()); Now try sending a contact message.... If it still doesn’t work, make the following change: In /tools/swift/Swift/Plugin/MailSend.php line # 159 Add $params = ""; Link to comment Share on other sites More sharing options...
josecerejo Posted June 12, 2015 Author Share Posted June 12, 2015 Thanks a lot for reply but still doesn't work. My contact form works at 100% if the user have any questions contacts and I receive email. The mailalerts still not working. 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