Este es el mensaje que resibo:
2022-12-01 03:06:55 Connection: opening to smtp.gmail.com:587, timeout=300, options=array()
2022-12-01 03:06:55 Connection: opened
2022-12-01 03:06:56 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP b19-20020a9d6b93000000b0066c34486aa7sm1608909otq.73 - gsmtp
2022-12-01 03:06:56 CLIENT -> SERVER: EHLO 190.180.62.136
2022-12-01 03:06:56 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [177.222.44.34]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
2022-12-01 03:06:56 CLIENT -> SERVER: STARTTLS
2022-12-01 03:06:56 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
2022-12-01 03:06:56 CLIENT -> SERVER: EHLO 190.180.62.136
2022-12-01 03:06:56 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [177.222.44.34]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
2022-12-01 03:06:56 CLIENT -> SERVER: AUTH LOGIN
2022-12-01 03:06:57 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2022-12-01 03:06:57 CLIENT -> SERVER: [credentials hidden]
2022-12-01 03:06:57 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2022-12-01 03:06:57 CLIENT -> SERVER: [credentials hidden]
2022-12-01 03:07:20 SERVER -> CLIENT: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 https://support.google.com/mail/?p=BadCredentials b19-20020a9d6b93000000b0066c34486aa7sm1608909otq.73 - gsmtp
2022-12-01 03:07:20 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 b19-20020a9d6b93000000b0066c34486aa7sm1608909otq.73 - gsmtp
SMTP Error: Could not authenticate.
2022-12-01 03:07:20 CLIENT -> SERVER: QUIT
2022-12-01 03:07:20 SERVER -> CLIENT: 221 2.0.0 closing connection b19-20020a9d6b93000000b0066c34486aa7sm1608909otq.73 - gsmtp
2022-12-01 03:07:20 Connection: closed
SMTP Error: Could not authenticate.
Ocurrio un Error el Enviar: SMTP Error: Could not authenticate.
este mensaje reviso y es evidente que algo anda mal... espero que me puedan ayudar