PHPMailer generates PHP Warning: stream_socket_enable_crypto(): Peer certificate did not match expected
问题 I am using PHPMailer on PHP 5.6, the increased security around certificated in PHP 5.6 is certainly fun. I am trying to send a test message to a domain hosted on dreamhost, the error that comes back from PHPMailer is: Could not connect to SMTP host. That error is not right though, I have logging enabled and here is what is actually going on. Connection: opening to mx1.sub4.homie.mail.dreamhost.com:25, timeout=30, options=array ( ) Connection: opened S: 220 homiemail-mx32.g.dreamhost.com ESMTP