add code for sending email
fix