Create, preview, and send custom email templates for Node.js. Highly configurable and supports automatic inline CSS, stylesheets, embedded images and fonts, and much more! Made for sending beautiful emails with Lad. We've added preview email by default to this package! If you run into any issues with configuration, files, templates, locals, etc, then you can use the DEBUG environment flag. You can swap the transport option with a Nodemailer transport configuration object or transport instance. We highly recommend using Postmark for your transport (it's the default in Lad). Out of the box, templates are cached as they are compiled (e.g. as emails are sent, the template they're using is cached). However these templates are not cached in advance, so the first emails sent of each template will be slower to send. We strongly suggest to pre-cache your templates with cache-pug-templates (if you're using the default Pug template engine).
Features
- Automatic Inline CSS via Stylesheets
- Render HTML and/or Text
- Cache Pug Templates
- Text-Only Email (no HTML)
- Custom Template Engine (e.g. EJS)
- Custom Default Message Options