added method for sending emails