Add sendMail function.