added support for external context information to be passed into the mailer