Hello, I've tested the code with the patch I just submitted, by trying with "-d" to connect to a closed port:
stderr: connect: ('mail.lelutin.ca', 466) connect: ('mail.lelutin.ca', 466) Error connecting to SMTP server mail.lelutin.ca:466: [Errno 111] Connection refused the above is a sample of the output. we can see the debugging output from smtplib followed by the output from the error handling. with debugging turned off, I see only the error message about the connection being refused. so I guess we can say this is a mission complete :) -- Gabriel Filion
signature.asc
Description: OpenPGP digital signature