add sendMail code