Im trying to send emails with smtp module, but Im having an error:
File \"/usr/lib/python2.7/smtplib.py\", in login raise SMTPAuthenticationError(code,
None of the less-secure options worked for me. What worked in the end was setting up 2-factor authentication, and then generating an app-specific password. Instructions here: https://support.google.com/domains/answer/9437157