How do I setup email from address from logging to the admins?

167 views
Skip to first unread message

אורי

unread,
Aug 9, 2019, 6:46:20 AM8/9/19
to django...@googlegroups.com
Django Users,

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, currently <webm...@speedy.net.2.speedy-technologies.com>)


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

Thanks,

אורי

unread,
Aug 9, 2019, 8:35:03 AM8/9/19
to django...@googlegroups.com
Hi,

I found out there is a separate setting:
Reply all
Reply to author
Forward
0 new messages