#30604: mail_managers fails with unhelpful error when MANAGERS is set 
incorrectly
-------------------------------------------+------------------------
               Reporter:  kblicharski      |          Owner:  (none)
                   Type:  New feature      |         Status:  new
              Component:  Error reporting  |        Version:  2.2
               Severity:  Normal           |       Keywords:
           Triage Stage:  Unreviewed       |      Has patch:  0
    Needs documentation:  0                |    Needs tests:  0
Patch needs improvement:  0                |  Easy pickings:  0
                  UI/UX:  0                |
-------------------------------------------+------------------------
 Hi,

 First time writing a ticket so I apologize if I do anything improperly
 here. This issue just arose on a project I've been working on, and it goes
 as follows:

 Our MANAGERS setting was set like so:

 {{{
 MANAGERS = ['[email protected]', '[email protected]']
 }}}

 And after calling mail_managers, the result was:
 {{{
 smtplib.SMTPRecipientsRefused: {'=?utf-8?q?h?=': (550, b'5.1.1
 <=?utf-8?q?h?=>: Recipient address rejected: User unknown in local
 recipient table'), '=?utf-8?q?u?=': (550, b'5.1.1 <=?utf-8?q?u?=>:
 Recipient address rejected: User unknown in local recipient table')}
 }}}

 After some investigation it became clear that this setting was in the
 improper format, but that was only because of
 [https://stackoverflow.com/questions/13481307/django-admin-emails-are-not-
 sending-properly this StackOverflow post]. It would be nice if Django
 failed early if this setting was detected but improperly set, rather than
 waiting until the consequences become apparent.

 Thank you,
 Kevin

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30604>
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/054.7f658f278caafcc2ea6963b5c3339ec2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to