Fixed #22407 -- Added BaseEmailHandler to allow customizing mail senders.

https://code.djangoproject.com/ticket/22407
Do we need the base class? I would have skipped it.