﻿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
22407	AdminEmailHandler should allow overriding the mail part of emit	Keryn Knight <django@…>	nobody	"Imagine I want, for some subset of errors, to instead mail ... well, anyone but the `ADMINS`, at the moment, this is difficult because subclassing `AdminEmailHandler` to replace the `mail.mail_admins` part also means copying the entire `emit` method. It would be useful if a method could be used instead, like so:

{{{
class MyAdminEmailHandler(AdminEmailHandler):
    def send_mail(self, **kwargs):
        mail.mail_who_I_say(connection=self.connection(), **kwargs)
}}}

With the original implementation changing such that instead of `emit()` calling `mail.mail_admins` it instead calls `self.send_mail(subject=subject, message=message, html_message=html_message)`"	Cleanup/optimization	closed	Utilities	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
