Adding send email functionality