Mailer interface supporting multiple transport layers and message composition methods