[Tutor] Problem with smtplib

bob gailer bgailer at gmail.com
Mon Feb 6 18:10:35 CET 2012


On 2/6/2012 6:05 AM, Nikolay Moskvin wrote:
> Hi, all
> I have a problem with sending mail via smtp. This error does not always
> happen. Does somebody seen this stacktrace?
I've seen many like that. It means exactly what it says.

"Connection unexpectedly closed"

Most likely something went awry with the internet connection between 
your computer and the SMTP server. Best strategy I know of is to trap 
the exception and retry, but for a limited # of times.

-- 
Bob Gailer
919-636-4239
Chapel Hill NC



More information about the Tutor mailing list