support SendMail function