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

Discussion in 'Troubleshooting and Problems' started by Mayhem30, May 29, 2016.

  1. Mayhem30

    Mayhem30 New 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.
  2. Mike

    Mike XenForo Developer Staff Member

    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.
    Pierce likes this.
  3. Mayhem30

    Mayhem30 New Member

    Thanks, that solved the issue.

    I was using "localhost" which is no longer a valid for "SMTP Host" in PHP 5.6 -> on.

Share This Page