create MailManager to deal with mail.