• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

PHP 5.6 - Mail is no longer being delivered

#1
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.
 

Mike

XenForo developer
Staff member
#2
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.