Replies: 0
Hello,
We moved our site from one host service to another, and now when we test the smtp, it does not work, below is the debug it gives me.
Versions:
WordPress: 4.9.5
WordPress MS: No
PHP: 7.0.29
WP Mail SMTP: 1.2.5
Params:
Mailer: smtp
Constants: No
ErrorInfo: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Host: smtp.office365.com
Port: 587
SMTPSecure: tls
SMTPAutoTLS: bool(true)
SMTPAuth: bool(true)
Server:
OpenSSL: Yes
SMTP Debug:
2018-04-17 21:47:23 Connection: opening to smtp.office365.com:587, timeout=300, options=array (
)
2018-04-17 21:47:23 Connection: opened
2018-04-17 21:47:23 SERVER -> CLIENT: 220-box2033.bluehost.com ESMTP Exim 4.89_1 #1 Tue, 17 Apr 2018 16:47:23 -0500
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
2018-04-17 21:47:23 CLIENT -> SERVER: EHLO protelecalarms.com
2018-04-17 21:47:23 SERVER -> CLIENT: 250-box2033.bluehost.com Hello protelecalarms.com [74.220.219.231]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
2018-04-17 21:47:23 CLIENT -> SERVER: STARTTLS
2018-04-17 21:47:23 SERVER -> CLIENT: 220 TLS go ahead
<br />
<b>Warning</b>: stream_socket_enable_crypto(): Peer certificate CN=*.bluehost.com' did not match expected CN=smtp.office365.com’ in <b>/home3/protele2/public_html/wp-includes/class-smtp.php</b> on line <b>368</b><br />
2018-04-17 21:47:23 SMTP Error: Could not connect to SMTP host.
2018-04-17 21:47:23 CLIENT -> SERVER: QUIT
2018-04-17 21:47:23 SERVER -> CLIENT: 221 box2033.bluehost.com closing connection
2018-04-17 21:47:23 Connection: closed
2018-04-17 21:47:23 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting