wiring up of node-mailer to templates