Troubleshooting OVH Email Pro TLS Connection Issues with PrestaShop 9
PrestaShop 9 and OVH Email Pro: A TLS Connection Problem
A recent PrestaShop forum thread (ID #1105449) brought to light a potential compatibility issue between PrestaShop 9 and OVH's Email Pro service when using TLS encryption. The original poster, Teff34, reported difficulties establishing a secure connection for sending emails via SMTP with their OVH Email Pro account.
The Problem:
Teff34 outlined their configuration attempts, highlighting that while an OVH MX Plan account worked flawlessly with TLS on port 465, the OVH Email Pro account presented connection problems. Specifically:
- OVH MX Plan: TLS + port 465 → Works
- OVH Email Pro: No encryption + port 587 → Works
- OVH Email Pro: TLS + port 465 → Fails
- OVH Email Pro: TLS + port 587 → Fails
The error message received indicated a timeout issue when attempting to connect to ssl://pro3.mail.ovh.net:465.
Possible Causes and Troubleshooting (No solutions in thread):
While the thread currently lacks definitive solutions, the issue points to a few potential areas of investigation:
- OVH Email Pro Specific Configuration: It's possible that OVH Email Pro requires a different SMTP server address or specific TLS settings compared to the MX Plan. Consulting OVH's documentation for Email Pro is recommended.
- Firewall Restrictions: The server's firewall might be blocking outgoing connections on port 465 or 587 specifically for the Email Pro SMTP server.
- PHP Version and SSL/TLS Libraries: While the poster is using PHP 8.1, ensuring that the necessary SSL/TLS extensions are enabled and properly configured within the PHP environment is crucial.
- PrestaShop Mail Configuration: Double-checking the SMTP settings within PrestaShop's back office is essential. Ensure the correct hostname (
pro3.mail.ovh.net), port, encryption type (if any), and authentication details are accurately entered.
Further Investigation:
Since no replies are present in the thread, the next steps for Teff34 and others facing this issue would involve:
- Contacting OVH support to confirm the correct SMTP settings and any specific requirements for Email Pro.
- Checking the PrestaShop error logs for more detailed information about the connection failure.
- Testing the SMTP connection using a simple PHP script outside of PrestaShop to isolate the problem. For example:
This thread serves as a valuable starting point for others encountering similar difficulties integrating OVH Email Pro with PrestaShop 9. Addressing this issue will improve the reliability of email communication within PrestaShop stores hosted on OVH.