email-i18n

email pre-processor with i18n and premailer integration

email-i18n

E-mail precompiler & optimizer for emails in different languages. Uses ejs templates to load content-snippets in the appropriate language and pre-compile emails.

email-i18 has premailer support built in. Which directly optimizes your emails with inline style rules.

 
var prepareEmails = require("email-i18n"),
 
prepareEmails(
    {
        src : __dirname + "/emails/src",
        target : __dirname + "/emails/compiled",
        lang : "en",
        usePremailer : true
    },
    function (err) { ... }
);