This line is throwing a gaierror… any idea why? Could it be a firewall?
smtp=smtplib.SMTP(host=EMAIL_HOST,port=EMAIL_PORT)
I’m using gmail so the host is ‘alt1.gmail-smtp-in.l.google.com’, and the port is 587.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Even if this weren’t a gaierror (which, as AJ rightly says is a DNS lookup error), that host doesn’t work for me either.
Specifically, it hangs trying to connect and times out.
However, the following seems to work:
Hope that helps.