SMTP Settings not working
-
Since we turned on MFA for our account we haven’t been able to use the SMTP settings in wp mail smtp. It won’t work with an App password which it should still work for.
The page I need help with: [log in to see the link]
-
Hi @bdrage,
When you get a chance, could you please try sending a test email (under WP Mail SMTP > Email Test) and share the details from that here? Here’s a screenshot for the option to get error details.
This will help us to get a better idea of what might be going on.
Thanks!
Hi Sanjeev
Error Log below as requested:
Versions:
WordPress: 5.3.2
WordPress MS: No
PHP: 7.3.13
WP Mail SMTP: 1.8.1Params:
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.1d 10 Sep 2019
SMTP Debug:
2020-02-18 09:25:00 Connection: opening to smtp.office365.com:587, timeout=300, options=array ()2020-02-18 09:25:00 Connection: opened
2020-02-18 09:25:00 SERVER -> CLIENT: 220 LO2P265CA0169.outlook.office365.com Microsoft ESMTP MAIL Service ready at Tue, 18 Feb 2020 09:24:59 +0000
2020-02-18 09:25:00 CLIENT -> SERVER: EHLO https://www.pahirenorwich.co.uk
2020-02-18 09:25:00 SERVER -> CLIENT: 250-LO2P265CA0169.outlook.office365.com Hello [35.177.90.36]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2020-02-18 09:25:00 CLIENT -> SERVER: STARTTLS
2020-02-18 09:25:00 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
2020-02-18 09:25:00 CLIENT -> SERVER: EHLO https://www.pahirenorwich.co.uk
2020-02-18 09:25:00 SERVER -> CLIENT: 250-LO2P265CA0169.outlook.office365.com Hello [35.177.90.36]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2020-02-18 09:25:00 CLIENT -> SERVER: AUTH LOGIN
2020-02-18 09:25:00 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2020-02-18 09:25:00 CLIENT -> SERVER: d29yZHByZXNzQHBhaGlyZW5vcndpY2guY28udWs=
2020-02-18 09:25:00 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2020-02-18 09:25:00 CLIENT -> SERVER: dmp4cmt5cGdxY2xwcWRjbA==
2020-02-18 09:25:06 SERVER -> CLIENT: 535 5.7.3 Authentication unsuccessful [LO2P265CA0169.GBRP265.PROD.OUTLOOK.COM]
2020-02-18 09:25:06 SMTP ERROR: Password command failed: 535 5.7.3 Authentication unsuccessful [LO2P265CA0169.GBRP265.PROD.OUTLOOK.COM]
SMTP Error: Could not authenticate.
2020-02-18 09:25:06 CLIENT -> SERVER: QUIT
2020-02-18 09:25:06 SERVER -> CLIENT: 221 2.0.0 Service closing transmission channel
2020-02-18 09:25:06 Connection: closed
SMTP Error: Could not authenticate.
Hope this helps
Hi @bdrage – This looks like a regular Authentication error. Your account is not expecting an APP password from you. Are you able to successfully connect with your regular password? If you have 2FA activated, you will probably get an error like ‘an Application-specific password is required’ while using your regular password.
Thanks, and please let me know.
Hi @sanzeeb3
I have tried it with the password and it comes back with this error.
Versions:
WordPress: 5.3.2
WordPress MS: No
PHP: 7.3.13
WP Mail SMTP: 1.8.1
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.1d 10 Sep 2019
SMTP Debug:
2020-02-19 09:50:46 Connection: opening to smtp.office365.com:587, timeout=300, options=array ()
2020-02-19 09:50:46 Connection: opened
2020-02-19 09:50:46 SERVER -> CLIENT: 220 LO2P123CA0041.outlook.office365.com Microsoft ESMTP MAIL Service ready at Wed, 19 Feb 2020 09:50:45 +0000
2020-02-19 09:50:46 CLIENT -> SERVER: EHLO https://www.pahirenorwich.co.uk
2020-02-19 09:50:46 SERVER -> CLIENT: 250-LO2P123CA0041.outlook.office365.com Hello [35.177.90.36]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2020-02-19 09:50:46 CLIENT -> SERVER: STARTTLS
2020-02-19 09:50:46 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
2020-02-19 09:50:46 CLIENT -> SERVER: EHLO https://www.pahirenorwich.co.uk
2020-02-19 09:50:46 SERVER -> CLIENT: 250-LO2P123CA0041.outlook.office365.com Hello [35.177.90.36]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2020-02-19 09:50:46 CLIENT -> SERVER: AUTH LOGIN
2020-02-19 09:50:46 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2020-02-19 09:50:46 CLIENT -> SERVER: d29yZHByZXNzQHBhaGlyZW5vcndpY2guY28udWs=
2020-02-19 09:50:46 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2020-02-19 09:50:46 CLIENT -> SERVER: YVpMOE1YKkBeNTdY
2020-02-19 09:50:52 SERVER -> CLIENT: 535 5.7.3 Authentication unsuccessful [LO2P123CA0041.GBRP123.PROD.OUTLOOK.COM]
2020-02-19 09:50:52 SMTP ERROR: Password command failed: 535 5.7.3 Authentication unsuccessful [LO2P123CA0041.GBRP123.PROD.OUTLOOK.COM]
SMTP Error: Could not authenticate.
2020-02-19 09:50:52 CLIENT -> SERVER: QUIT
2020-02-19 09:50:52 SERVER -> CLIENT: 221 2.0.0 Service closing transmission channel
2020-02-19 09:50:52 Connection: closed
SMTP Error: Could not authenticate.Hope this gives some more info
Hi @bdrage – The error details indicates your SMTP server can’t authenticate you. This could be due to some reasons such as the access to the SMTP port is restricted using firewall rules, your account does not allow third-party products access the email servers. You might need to check with your hosting provider support about the issue.
Thanks!
- The topic ‘SMTP Settings not working’ is closed to new replies.