Add ability to pass local substitutions to mailer