I am new to WordPress and I am building a website on localhost using WAMP. I am trying to create a form and send emails when the user submits their information. I am using WP Mail SMTP but I get this error when I try to test it, here are some pictures of the configuration:
And here's the error message:
My Setup:
Versions:
- WordPress: 6.0.2
- WordPress MS: No
- PHP: 7.2.18
- WP Mail SMTP: 3.5.2
Params:
- Mailer: smtp
- Constants: No
- ErrorInfo: SMTP Error: Could not authenticate.
- Host: smtp.gmail.com
- Port: 465
- SMTPSecure: ssl
- SMTPAutoTLS: C:\wamp64\www\testing_wordpress\wp-content\plugins\wp-mail-smtp\src\Debug.php:188:boolean false
- SMTPAuth: C:\wamp64\www\testing_wordpress\wp-content\plugins\wp-mail-smtp\src\Debug.php:188:boolean true
Server:
- OpenSSL: OpenSSL 1.1.1b 26 Feb 2019
- Apache.mod_security: No
Debug:
- Email Source: WP Mail SMTP
- Mailer: Other SMTP
- SMTP Error: Could not authenticate.
SMTP Debug:
2022-09-07 14:42:56 Connection: opening to ssl://smtp.gmail.com:465, timeout=300, options=array()
2022-09-07 14:42:58 Connection: opened
2022-09-07 14:42:58 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP y16-20020a05600c365000b003a62bc1735asm19424859wmq.9 - gsmtp
2022-09-07 14:42:58 CLIENT -> SERVER: EHLO localhost
2022-09-07 14:42:58 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [129.45.33.42]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
2022-09-07 14:42:58 CLIENT -> SERVER: AUTH LOGIN
2022-09-07 14:42:58 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2022-09-07 14:42:58 CLIENT -> SERVER: [credentials hidden]
2022-09-07 14:42:59 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2022-09-07 14:42:59 CLIENT -> SERVER: [credentials hidden]
2022-09-07 14:42:59 SERVER -> CLIENT: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 https://support.google.com/mail/?p=BadCredentials y16-20020a05600c365000b003a62bc1735asm19424859wmq.9 - gsmtp
2022-09-07 14:42:59 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 y16-20020a05600c365000b003a62bc1735asm19424859wmq.9 - gsmtp
SMTP Error: Could not authenticate.
2022-09-07 14:42:59 CLIENT -> SERVER: QUIT
2022-09-07 14:43:00 SERVER -> CLIENT: 221 2.0.0 closing connection y16-20020a05600c365000b003a62bc1735asm19424859wmq.9 - gsmtp
2022-09-07 14:43:00 Connection: closed
SMTP Error: Could not authenticate.


