-
Notifications
You must be signed in to change notification settings - Fork 59
SMTP backend not raising SMTPRecipientsRefused #74
Copy link
Copy link
Open
Labels
2.enhancementA request for a new feature or altered behaviour.A request for a new feature or altered behaviour.meta:discussThis issue may be larger in scope, requiring discussion.This issue may be larger in scope, requiring discussion.need:testTests are required before acceptance.Tests are required before acceptance.transport:smtp
Description
Activity
Metadata
Metadata
Assignees
Labels
2.enhancementA request for a new feature or altered behaviour.A request for a new feature or altered behaviour.meta:discussThis issue may be larger in scope, requiring discussion.This issue may be larger in scope, requiring discussion.need:testTests are required before acceptance.Tests are required before acceptance.transport:smtp
I am trying to send a message with wrong configured sender. I am getting the following line in the log:
My problem is that nothing else happens. That exception is not raised, just silently logged.
I believe an exception like this should be treated similarly to if a sending couldn't happen for example because of wrong password or something. That one raises an exception, this one does not.
The reason is this line is just silently "eating" all exceptions:
mailer/marrow/mailer/transport/smtp.py
Line 105 in 3995ef9