smtp debugging methods

Jon Ribbens jon+usenet at unequivocal.co.uk
Fri Sep 14 06:32:24 EDT 2007


On 2007-09-14, Sean Nakasone <seannakasone at yahoo.com> wrote:
> I'm having trouble with sending smtp mail.  It's hanging after the 
> smtplib.SMTP() line. It doesn't works from home but not from work.  What's 
> the best way to debug this?
>
> # Here's the error
>>>> server = smtplib.SMTP("smtp.gmail.com",465)

smtp.gmail.com port 465 is SSL only. Try port 587 instead.



More information about the Python-list mailing list