reduced all email code to calls to sendEmail utility method