I am writing a Python program to send an email. But every time when executing the clause:
smtpserver = smtplib.SMTP(\"smtp.gmail.com\",587)
Maybe I am 4 years late, but this is what worked for me and might help someone else!
server = smtplib.SMTP("smtp.gmail.com", 587, None, 30)