Replies: 0
Hi there,
I’m trying to set up my email and keep getting an error message. I have tested my email on another website and it’s working (I have received test email on my work account), but when I try and use it on WordPress it just will not work.
(And yes I have double, triple and quadruple-checked my email credentials! 😊)
Here is the error log I’m receiving:
Versions:
WordPress: 5.3.4
WordPress MS: No
PHP: 7.3.16
WP Mail SMTP: 2.2.1
Params:
Mailer: smtp
Constants: No
ErrorInfo: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Host: smtp.office365.com
Port: 587
SMTPSecure: ssl
SMTPAutoTLS: bool(false)
SMTPAuth: bool(true)
Server:
OpenSSL: OpenSSL 1.0.2r 26 Feb 2019
Debug:
Mailer: Other SMTP
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
SMTP Debug:
2020-08-06 03:40:13 Connection: opening to ssl://smtp.office365.com:587, timeout=10, options=array ()
2020-08-06 03:40:13 Connection failed. Error #2: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol [/home/hairstyl/public_html/wp-includes/class-smtp.php line 298]
2020-08-06 03:40:13 Connection failed. Error #2: stream_socket_client(): Failed to enable crypto [/home/hairstyl/public_html/wp-includes/class-smtp.php line 298]
2020-08-06 03:40:13 Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://smtp.office365.com:587 (Unknown error) [/home/hairstyl/public_html/wp-includes/class-smtp.php line 298]
2020-08-06 03:40:13 SMTP ERROR: Failed to connect to server: (0)
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting