Added sendMail email helper function