Added functions to EmailSender