Replies: 0
I have used the plugin: WP Mail SMTP on a number of occasions for clients. I have two clients at the moment that the plugin just will not work for. I have tried all sorts of port numbers, spoken to my hosting company, Domain company etc and they still don’t work.
Both are with Microsoft Office 365 now for email.
This is the error I get after trying to send a test email.
Versions:
WordPress: 5.7.2
WordPress MS: No
PHP: 7.3.29
WP Mail SMTP: 2.9.0
Params:
Mailer: smtp
Constants: No
ErrorInfo: SMTP Error: Could not authenticate.
Host: smtp.office365.com
Port: 587
SMTPSecure: tls
SMTPAutoTLS: bool(true)
SMTPAuth: bool(true)
Server:
OpenSSL: OpenSSL 1.1.1k 25 Mar 2021
Debug:
Mailer: Other SMTP
SMTP Error: Could not authenticate.
SMTP Debug:
2021-07-14 06:57:39 Connection: opening to smtp.office365.com:587, timeout=300, options=array()
2021-07-14 06:57:39 Connection: opened
2021-07-14 06:57:39 SERVER -> CLIENT: 220 SYBPR01CA0032.outlook.office365.com Microsoft ESMTP MAIL Service ready at Wed, 14 Jul 2021 06:57:48 +0000
2021-07-14 06:57:39 CLIENT -> SERVER: EHLO leadingedgelifeskills.com.au
2021-07-14 06:57:39 SERVER -> CLIENT: 250-SYBPR01CA0032.outlook.office365.com Hello [114.141.201.100]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2021-07-14 06:57:39 CLIENT -> SERVER: STARTTLS
2021-07-14 06:57:39 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
2021-07-14 06:57:40 CLIENT -> SERVER: EHLO leadingedgelifeskills.com.au
2021-07-14 06:57:40 SERVER -> CLIENT: 250-SYBPR01CA0032.outlook.office365.com Hello [114.141.201.100]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2021-07-14 06:57:40 CLIENT -> SERVER: AUTH LOGIN
2021-07-14 06:57:40 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2021-07-14 06:57:40 CLIENT -> SERVER: [credentials hidden]
2021-07-14 06:57:40 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2021-07-14 06:57:40 CLIENT -> SERVER: [credentials hidden]
2021-07-14 06:57:45 SERVER -> CLIENT: 535 5.7.139 Authentication unsuccessful, SmtpClientAuthentication is disabled for the Tenant. Visit https://aka.ms/smtp_auth_disabled for more information. [SYBPR01CA0032.ausprd01.prod.outlook.com]
2021-07-14 06:57:45 SMTP ERROR: Password command failed: 535 5.7.139 Authentication unsuccessful, SmtpClientAuthentication is disabled for the Tenant. Visit https://aka.ms/smtp_auth_disabled for more information. [SYBPR01CA0032.ausprd01.prod.outlook.com]
SMTP Error: Could not authenticate.
2021-07-14 06:57:45 CLIENT -> SERVER: QUIT
2021-07-14 06:57:45 SERVER -> CLIENT: 221 2.0.0 Service closing transmission channel
2021-07-14 06:57:45 Connection: closed
SMTP Error: Could not authenticate.