email-i18n

email pre-processor with i18n and premailer integration

npm install email-i18n
3 downloads in the last week
12 downloads in the last month

email-i18n

What?

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.

Usage


var prepareEmails = require("email-i18n"),

prepareEmails(
    {
        src : __dirname + "/emails/src",
        target : __dirname + "/emails/compiled",
        lang : "en",
        usePremailer : true
    },
    function (err) { ... }
);
npm loves you