Replies: 0
Hello Everyone,
Sending email with WP mail smtp plugin on our wp site using G Suite gmail service results in SMTP Error: Could not authenticate. The only way to resolve it was to allow Google less secure apps. See the error log below. My question, is allowing Google less secure apps, the best practices method to make it work? Is there a better way?
Regards
-igwt
Versions:
WordPress: 5.9.2
WordPress MS: No
PHP: 7.4.24
WP Mail SMTP: 3.2.1
Params:
Mailer: smtp
Constants: No
ErrorInfo: SMTP Error: Could not authenticate.
Host: smtp.gmail.com
Port: 587
SMTPSecure: tls
SMTPAutoTLS: bool(true)
SMTPAuth: bool(true)
Server:
OpenSSL: OpenSSL 1.1.1k 25 Mar 2021
Apache.mod_security: No
Debug:
Email Source: WP Mail SMTP Pro
Mailer: Other SMTP
SMTP Error: Could not authenticate.
.
.
2022-04-09 21:46:12 SERVER -> CLIENT: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 https://support.google.com/mail/?p=BadCredentials w7-20020a9d6387000000b005b2265711fcsm10606924otk.16 - gsmtp
2022-04-09 21:46:12 SMTP ERROR: Password command failed: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 https://support.google.com/mail/?p=BadCredentials w7-20020a9d6387000000b005b2265711fcsm10606924otk.16 - gsmtp
SMTP Error: Could not authenticate.
2022-04-09 21:46:12 CLIENT -> SERVER: QUIT
2022-04-09 21:46:12 SERVER -> CLIENT: 221 2.0.0 closing connection w7-20020a9d6387000000b005b2265711fcsm10606924otk.16 - gsmtp
2022-04-09 21:46:12 Connection: closed
SMTP Error: Could not authenticate.