fixed sendMail missing parameters