Added threading to email sending (EmailSender class)