added sending email functionality