optimization sendMail