#15603: Don't send HTML emails by default
------------------------------+--------------------------------------
Reporter: kmtracey | Owner: nobody
Status: new | Milestone: 1.3
Component: Core framework | Version: 1.3-rc1
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
------------------------------+--------------------------------------
In my experience (gmail accounts) the HTML error traceback emails new with
1.3 are much harder to read than the previous plaintext emails. They also
expose far more information (potentially sensitive local variable values)
than the previous emails. Proposal is to not send HTML by default, but
make it easy to configure for HTML inclusion if that is what is really
wanted. Attached patch does this. To get HTML included in the email you'd
change your logger config to:
{{{
#!python
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'mail_admins': {
'level': 'ERROR',
'class': 'django.utils.log.AdminEmailHandler',
'include_html': True,
}
},
'loggers': {
'django.request':{
'handlers': ['mail_admins'],
'level': 'ERROR',
'propagate': True,
},
}
}
}}}
Only change is the inclusion of the `include_html: True` on the
mail_admins handler definition.
--
Ticket URL: <http://code.djangoproject.com/ticket/15603>
Django <http://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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.