Unable to send a test email from the WP mail SMTP

Versions:
WordPress: 6.3.1
WordPress MS: No
PHP: 8.1.17
WP Mail SMTP: 3.9.0

Params:
Mailer: smtp
Constants: No
ErrorInfo: SMTP Error: Could not authenticate.
Host: smtp.gmail.com
Port: 465
SMTPSecure:ssl
SMTPAutoTLS:bool(true)
SMTPAuth:bool(true)

Server:
OpenSSL: OpenSSL 1.1.1n 15 Mar 2022

Debug:
Email Source: WP Mail SMTP Mailer: Other SMTP SMTP Error: Could not authenticate.

SMTP Debug:
2023-09-19 06:43:36 Connection: opening to ssl://smtp.gmail.com:465, timeout=300, options=array()
2023-09-19 06:43:36 Connection: opened
2023-09-19 06:43:36 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP t16-20020a92d150000000b0034f47db5b40sm2223453ilg.74 - gsmtp
2023-09-19 06:43:36 CLIENT -> SERVER: EHLO www.bikerwearusa.net
2023-09-19 06:43:36 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [34.67.17.252]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
2023-09-19 06:43:36 CLIENT -> SERVER: AUTH LOGIN
2023-09-19 06:43:36 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2023-09-19 06:43:36 CLIENT -> SERVER: [credentials hidden]
2023-09-19 06:43:36 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2023-09-19 06:43:36 CLIENT -> SERVER: [credentials hidden]
2023-09-19 06:43:36 SERVER -> CLIENT: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 https://support.google.com/mail/?p=BadCredentials t16-20020a92d150000000b0034f47db5b40sm2223453ilg.74 - gsmtp
2023-09-19 06:43:36 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 t16-20020a92d150000000b0034f47db5b40sm2223453ilg.74 - gsmtp
SMTP Error: Could not authenticate.
2023-09-19 06:43:36 CLIENT -> SERVER: QUIT
2023-09-19 06:43:36 SERVER -> CLIENT: 221 2.0.0 closing connection t16-20020a92d150000000b0034f47db5b40sm2223453ilg.74 - gsmtp
2023-09-19 06:43:36 Connection: closed
SMTP Error: Could not authenticate.

Unable to send a test email from the WP mail SMTP,

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer