Hi,

I found out there is a separate setting:
https://code.djangoproject.com/ticket/30692
אורי
u...@speedy.net


‪On Fri, Aug 9, 2019 at 1:44 PM ‫אורי‬‎ <u...@speedy.net> wrote:‬

> 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',
>         },
>     },
>
>
> 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, currently <
> webmas...@speedy.net.2.speedy-technologies.com>)
>
>
> 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?
>
> Thanks,
> אורי
> u...@speedy.net
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABD5YeHSo1szFv8ZzwRtEbHusvvmgQFFaPq2qq3JrdvDSAzqBg%40mail.gmail.com.

Reply via email to