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,
Go to Google's Account Security Settings: www.google.com/settings/security
Find the field "Access for less secure apps". Set it to "Allowed".
Try your script again, changing server.sendemail() to server.sendmail()
server.sendemail()
server.sendmail()