parpro8 Posted February 28, 2013 Share Posted February 28, 2013 (edited) 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 = ""; Edited February 28, 2013 by parpro8 (see edit history) Link to comment Share on other sites More sharing options...
tonycajjo Posted March 3, 2013 Share Posted March 3, 2013 stumbled across the same info on presto chango and it worked for me, i'm hosting with FATCOW php 5.3.13 and had to make the changes to messages.php and add the lines to swift.php possibly this could be added to the email config page for furture updates. seems simple enough. Link to comment Share on other sites More sharing options...
mohamadeffazuan Posted April 3, 2013 Share Posted April 3, 2013 Hi parpro8, I've follow all the instruction but the send email still not working. I'm using PS 1.5.1. Pls help. Link to comment Share on other sites More sharing options...
tonycajjo Posted April 3, 2013 Share Posted April 3, 2013 does the test email work? if not maybe setup SMTP to send the mail and make sure the yourdomainname.com above is actually your domain and email mail box. double check your spam folder. maybe you are having trouble with you host. ask them if they see any issues. check your log. look up writing a simple php file to send a test mail. else you should just call your customers... joking... try making a simple .php send mail() file and let us know what kind of errors you get from there. good luck. Link to comment Share on other sites More sharing options...
mohamadeffazuan Posted April 3, 2013 Share Posted April 3, 2013 Hi tony, The test email works. Already check spam folder, also not received. I've try to run a simple php program to test the mail function, and it run successfully but no email received. Is it because of the host problem? Link to comment Share on other sites More sharing options...
tonycajjo Posted April 3, 2013 Share Posted April 3, 2013 (edited) I would say host is fine then. Are you sure you have the mail alert module setup correctly and that the necessary templates are in order? Edit: after rereading your post it could be a host problem if the email is sent successfully but not received. If you are send to an email address thwt is a permanent FWD it could be stopping it. I had thqt issue with a gmail account and had to create a filter. I haven't looked into changing the templates so they are missed by any spam filter. Edited April 3, 2013 by tonycajjo (see edit history) 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