﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30692	Email sent by AdminEmailHandler is sent from <root@localhost>, not from settings.DEFAULT_FROM_EMAIL	אורי	nobody	"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',
        },
    },

https://github.com/speedy-net/speedy-net/blob/staging/speedy/core/settings/base.py#L206-L219 

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)

https://github.com/speedy-net/speedy-net/blob/staging/speedy/core/settings/staging_utils.py#L8  

How do I change the from address of email sent to admins from logging?
"	Uncategorized	closed	Uncategorized	1.11	Normal	invalid			Unreviewed	0	0	0	0	0	0
