Transacemail provides an organized way to handle transactional email while still being fully decoupled and modular.
Install the module with: npm install transacemail
TemplateEngine are object that should implement the following methods:
.compile(templateString) -> Function
.exec(fnCompiledTemplate, data) -> String
SeeMailing.templateEngine
in Mailing.js.
MailProviders just have to implement: .send(mail, callback(err, success))
.
See node-transacemail-mandrill.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.
v0.1.0 - Initial commit (4 fev. 2012)
Copyright (c) 2013 Francois-Guillaume Ribreau Licensed under the MIT license.