fixed error in send email option