Open nopnop2002 opened 2 years ago
Hi @nopnop2002 thanks for pointing out that google stopped Less secure apps option.
There however is a workaround to still make this example useful. You need to generate special app password. I found this on StackOverflow: https://stackoverflow.com/a/72626684/3249583
@vikramdattu
There however is a workaround to still make this example useful.
I tried this. It's work fine.
I (14363) smtp_example: Writing STARTTLS to server...
220 2.0.0 Ready to start TLS
I (14623) smtp_example: Performing the SSL/TLS handshake...
I (15953) smtp_example: Verifying peer X.509 certificate...
I (15953) smtp_example: Certificate verified.
I (15953) smtp_example: Cipher suite is TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
I (15963) smtp_example: Authentication...
I (15963) smtp_example: Write AUTH LOGIN
I (16203) smtp_example: Write USER NAME
I (16623) smtp_example: Write PASSWORD
I (16923) smtp_example: write_ssl_and_get_response=235
I (16923) smtp_example: Write MAIL FROM
I (17123) smtp_example: Write RCPT
I (17333) smtp_example: Write DATA
I (17643) smtp_example: Write Content
I (19173) smtp_example: Email sent!
However, the procedure is complicated. I would like to wait for an official fix.
Environment
Problem Description
To help keep your account secure, from May 30, 2022, Google no longer supports the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password.
As a result, examples/protocols/smtp_client does not work properly.
Debug Logs