zope.sendmail doesn't handle SMTP errors
Bug #157104 reported by
Marius Gedminas
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 3 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
If you try to send an email with a malformed sender/recipient address, the SMTP server will reject it, smtplib will raise a smtplib.
If you use mail:directDelivery instead of mail:queuedDeli
To post a comment you must log in.
zope.sendmail also does not handle these events gracefully:
o SMTP Error 45x - temporary error
o Temporary failure to connect() to the MTA to start delivery of a message
o Failure of SMTP TCP connection during SMTP session
I am just finishing writing code that will handle all this gracefully, I will add the SMTPRecipientsR efused Exception handling to it as well.