updated MailWrite
added interface SendMail