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

https://code.djangoproject.com/ticket/22407
Done. Thanks.