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 STARTLS
This 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] http://php.net/manual/en/migration56.openssl.php
[2] https://evert.meulie.net/faqwd/unable-to-send-email-from-wordpress-via-smtp-php-5-6/