Provide MailMessageFactory API for authentication.