send email functionality added