#23944: Django should use custom exceptions for errors thrown by send_mail 
(etc.),
not smtplib.SMTPException
-------------------------------+--------------------------------------
     Reporter:  jordanreiter   |                    Owner:  nobody
         Type:  Uncategorized  |                   Status:  new
    Component:  Core (Mail)    |                  Version:  1.7
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------

Comment (by timgraham):

 I am not sure there's a compelling use case for third-party apps handling
 the different types of email failures that makes this extra complexity
 worthwhile. It seems to me most apps could simply catch `Exception` if
 `send_mail()` fails -- or use `fail_silently=True` and check the number of
 messages sent and handle an error based on its needs.

--
Ticket URL: <https://code.djangoproject.com/ticket/23944#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/070.d3244218486fac0e1b2bc3285421154e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to