OpenSSL changes in PHP 5.6.x
-
Plugin WP Mail SMTP stop works after a PHP Upgrade from PHP 5.4 to PHP 5.6 using an SMTP server that require:
* authentication
* Connection over STARTLSThis due OpenSSL changes [1].
As suggested on php.net site and other [2] I patch wp-includes/class-phpmailer.php
//public $SMTPOptions = array(); public $SMTPOptions = array( 'ssl' => array( 'verify_peer' => false, 'verify_peer_name' => false ) );
All seems works fine again. I suggest To author to add an option “verify_peer” true/false to plugin to override PHP 5.6 default.
HTH
Alessandro – lota[1] https://php.net/manual/en/migration56.openssl.php
[2] https://evert.meulie.net/faqwd/unable-to-send-email-from-wordpress-via-smtp-php-5-6/
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘OpenSSL changes in PHP 5.6.x’ is closed to new replies.