﻿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
15603	Don't send HTML emails by default	Karen Tracey	Adrian Holovaty	"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.

"		closed	Core (Other)	1.3-rc		fixed	blocker		Accepted	0	0	0	0	0	0
