factor mail into sendEmail()