Artunj Posted August 8, 2013 Share Posted August 8, 2013 Hi, in my website email function totally not working. I want to make my gmail account as a base email but it not working. In advanced parameters>E-mail I make like that: mail domain name: www.gmail.com smtp server: smtp.gmail.com smtp user: [email protected] smtp password: ***** Encryption: None Port: 465 Also I made these instructions: 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()); In /tools/swift/Swift/Plugin/MailSend.php line # 159 Add $params = ""; But unfortunately it is still not working Link to comment Share on other sites More sharing options...
Artunj Posted August 9, 2013 Author Share Posted August 9, 2013 nobody helping Link to comment Share on other sites More sharing options...
NemoPS Posted August 9, 2013 Share Posted August 9, 2013 Try removing the mail domain name and changing port to 587 Link to comment Share on other sites More sharing options...
Artunj Posted August 9, 2013 Author Share Posted August 9, 2013 There is an error like that: Error: Please check your configuration The SMTP connection failed to start [smtp.gmail.com:587]: fsockopen returned Error Number 111 and Error String 'Connection refused' Link to comment Share on other sites More sharing options...
Recommended Posts