transactional-email-templates
Customizable transitional HTML email templates for Node.js, compiled with variable content. Each template is responsive and each has been tested in all the popular email clients.
Usage
const templates = ; const alertEmailHTML = templates;// yields http://mailgun.github.io/transactional-email-templates/alert.html const currency = '$';const totalCost = 3398;const billingEmailHTML = templates;// yields http://mailgun.github.io/transactional-email-templates/billing.html const actionEmailHTML = templatesaction title: 'Reset your password' bodyElements: 'Please confirm your email address by clicking the link below.' 'We may need to send you critical information about our service and it is important that we have an accurate email address.' link: 'http://www.mailgun.com/' linkCTA: 'Confirm Email Address' linkColor: '#3A90D7' byline: '- The Mailgunners' footerText: 'Follow ' footerLink: 'http://twitter.com/mail_gun' footerLinkText: '@Mail_Gun on Twitter';// yields http://mailgun.github.io/transactional-email-templates/action.html
Options
/** * Build alert email HTML * module.exports.alert * * @access public * @param * @param * @param * @param * @param * @param * @param * @param * @param * @param * @param * @param * @param * @param * @returns */ /** * Build action email HTML * module.exports.action * * @access public * @param * @param * @param * @param * @param * @param * @param * @param * @param * @param * @param * @param * @returns */ /** * Build billing/invoice email HTML * module.exports.billing * * @access public * @param * @param * @param * @param * @param * @param * @param * @param * @param * @param * @param * @param * @param * @param * @param * @param * @param * @param * @param * @returns */ /** * @typedef * @property * @property */
Install
$ npm install transactional-email-templates --save
Acknowledgments
- Based on Mailgun's excellent transactional email templates