PHP 5.6 - Mail is no longer being delivered

Mayhem30

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

ErrorException: Email to example@gmail.com failed: stream_socket_enable_crypto(): Peer certificate CN=`mail-server.com' 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 mail-server.com. You should use the latter, as the SSL certificate from your mail server doesn't identify localhost as the expected host name.
 
Top Bottom