MailUtil reFactored.