PHP 5.6 - Mail is no longer being delivered


I just installed PHP 5.6 last night and mail is no longer being delivered.

ErrorException: Email to failed: stream_socket_enable_crypto(): Peer certificate CN=`' did not match expected CN=`localhost' - library/Zend/Mail/Protocol/Smtp.php:206

This issue is only happening with Xenforo, all my other software that sends mail is working currently.
What have you entered in XenForo as the hostname for the mail server? I'm assuming you used localhost rather than You should use the latter, as the SSL certificate from your mail server doesn't identify localhost as the expected host name.
Top Bottom