#less_secure_apps #gmail #smtp
SMTPAuthenticationError at
535, b'5.7.8 Username and Password not accepted.
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.
You can use the App passwords feature to generate a 16-digit code to be used as a password in your code of any programming language i.e. Python/Java/PHP/.Net etc to send the email notifications.
Gmail App Passwords - Gmail stopped Less Secure Apps