Prestashop v18.104.22.168 has included an updated version of the Swift Mailer library. While it is not the latest version of SwiftMailer, it should address the lack of STARTTLS and allow you to connect to modern gateways.
Therefore I will not be maintaining this modification going forward. I will however keep my modification for those on previous versions of Prestashop
For those of you on PS v1.5 and v1.6, there is now a free module created by contributor Michael Dekker that you can use as well.
The version of SwiftMailer that is included with Prestashop was released in 2007 and is quite old and unsupported. One of the issues with this version is that it does not properly work with modern mail systems that require a STARTTLS command.
If you are trying to use a SMTP server and you are receiving an error similar to below, then it means you are having an issue connecting to the SMTP server due to lack of STARTTLS.
The SMTP connection failed to start [tls://smtp.live.com:587]: fsockopen returned Error Number 0 and Error String
The SMTP connection failed to start [tls://smtp.gmail.com:587]: fsockopen returned Error Number 0 and Error String
This modification does two things.
- It includes SwiftMailer v5.4.1 that you will upload to your website using FTP
- It includes an updated Prestashop Mail class that has been refactored to work with the above SwiftMailer version
This modification will replace your existing Mail class file. Due to the nature of this issue, this is not a module and is not created as an override.
This modification will replace the SwiftMailer library packaged with Prestashop, with SwiftMailer v5.4.1 released on June 6 2015. I do not provide support for SwiftMailer, or other errors you may receive after installing this modification. For more information about SwiftMailer, you can visit their website http://swiftmailer.org/
You will need to confirm that you are using PHP version 5.3 or higher. SwiftMailer no longer supports PHP 5.2
This modification currently supports the following Prestashop versions
- v1.4.7, v22.214.171.124, v126.96.36.199
- v188.8.131.52, v184.108.40.206
- v220.127.116.11, v18.104.22.168, v22.214.171.124, v126.96.36.199, v188.8.131.52, v184.108.40.206, v220.127.116.11 and v18.104.22.168
- v22.214.171.124, v126.96.36.199, v188.8.131.52, v184.108.40.206, v220.127.116.11
If your version is not listed here, just contact me before you purchase, and confirm that I will include your version.
Note: SwiftMailer no longer supports PHP v5.2. Ensure you are using PHP V5.3 or greater