imusorka Posted October 28, 2016 Share Posted October 28, 2016 Running 2.3.4 on PHP 5.6.14 and right after switching to TLS 1.2 causes the following warnings to spring up when the cart is trying to send mail (e.g. order status updates, order confirmation). Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number in /home/xxx/public_html/xxx/includes/classes/class.smtp.php on line 344 Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/xxx/includes/classes/class.smtp.php:344) in /home/xxx/public_html/xxx/includes/functions/general.php on line 38 This appears to be a PHP-related issue. What is the correct PHP config to make PHPMailer play nicely with TLS 1.2? Link to comment Share on other sites More sharing options...
imusorka Posted October 28, 2016 Author Share Posted October 28, 2016 The solution is to change the following within class.smtp.php (in both /includes/classes and /admin/includes/classes). STREAM_CRYPTO_METHOD_TLS_CLIENT to STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.