sending email functionality is working