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

https://code.djangoproject.com/ticket/22407
probably could use ~ for the class