mailer-q-ejs
v2.0.0
Published
EJS renderer for the MailerQ plugin
Downloads
6
Readme
MailerQ EJS Plugin
Installation
npm install mailer-q-ejs --save
Usage
- This plugin is an extension of the MailerQ module for sending email.
- It enables MailerQ to use EJS templating to send email.
- To use this extension, simply require the module and call the resulting function with the path to your email templates as an argument.
Example configuration:
const path = require("path");
const MailerQ = require("mailer-q")();
const MailerQEjs = require("mailer-q-ejs");
const options = {
...otherOptionsHere,
renderer: MailerQEjs(path.join(__dirname, "./email_templates"))
};
module.exports = MailerQ.config(options);