missed the code for sending email, fixed