Peer certificate CN did not match
-
We are preparing to use WP Mail SMTP to send emails through Yahoo SMTP, following the instructions to use Yahoo’s app password. However, when testing with a test mail, we encountered the following error message:
Connection failed. Error #2: stream_socket_client(): Peer certificate CN=dcp2.secserverpros.com' did not match expected CN=
smtp.mail.yahoo.com’ [/home/batag/public_html/wp-includes/PHPMailer/SMTP.php line 397]
The error occurred in the following code: $connection = stream_socket_client( $host . ‘:’ . $port, $errno, $errstr, $timeout, STREAM_CLIENT_CONNECT, $socket_context );
Perhaps this is due to the website and email server being hosted by different web hosting providers. How can we resolve this issue?
Thank you!
- The topic ‘Peer certificate CN did not match’ is closed to new replies.