send an email smtplib code example
Example: smtplib not sending email
Go to this link and select Turn On
https://www.google.com/settings/security/lesssecureapps
Go to this link and select Turn On
https://www.google.com/settings/security/lesssecureapps