Added a helper method to send emails