lost-in-code.com
PHP Warning: stream_socket_enable_crypto(): Peer certificate - Lost In Code
PHP Warning: stream_socket_enable_crypto(): Peer certificate CN=example.host' did not match expected CN=smtp.sendgrid.net’ This PHP warning usually occurs with an email library such as phpMailer just before SMTP authentication fails. The reason for the warning is because phpMailer is trying to verify the peer on the remote mail server but the SMTP request is rerouted through to …