Extracted interface from the SendMail method. (fixes #5)