#30692: Email sent by AdminEmailHandler is sent from <root@localhost>, not from
               Reporter:  אורי           |          Owner:  nobody
                   Type:  Uncategorized  |         Status:  new
              Component:  Uncategorized  |        Version:  1.11
               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              |
 I'm using AdminEmailHandler in Speedy Net to send mail to the admins. My
 log file contains the following lines:

     'handlers': {
         'syslog': {
             'level': 'DEBUG',
             'class': 'logging.handlers.SysLogHandler',
             'facility': 'local7',
             'address': '/dev/log',
             'formatter': 'verbose'
         'mail_admins': {
             'level': 'WARNING',
             'class': 'django.utils.log.AdminEmailHandler',
             'formatter': 'verbose',


 But the email I receive (as an admin) from logging is sent to me from
 <root@localhost>, although I configured a from address
 (DEFAULT_FROM_EMAIL) and other emails I receive from Django is from the
 from address (which is different for the staging server)


 How do I change the from address of email sent to admins from logging?

Ticket URL: <https://code.djangoproject.com/ticket/30692>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 

Reply via email to