Added send email functionality