#JC-536: Run email sending in a separate thread
* Refactor MailSender