Skip to content

mihaerzen/mandrill-template-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mandrill-template-example

An example for using the mandrill template with nodejs.

Requirements

  • NodeJs
  • Mandrill account

How to

  1. Go to Mandrill Templates and create new template.
  2. In the Mandrill Sending options set Merge Language to Handlebars (in the bottom).
  3. Copy template.html from this repo to the HTML field in mandrill.
  4. npm install
  5. Create config.local.js in your folder (look example below)
'use strict';

module.exports = {
    mandrillApiKey: 'MANDRILL-API-KEY',
    templateSlug: 'your-template-slug',
    toEmail: '[email protected]'
};

Run

node index.js

You can find more about parameters for mandrill send template here: https://mandrillapp.com/api/docs/messages.nodejs.html#method=send-template

About

An example for using the mandrill template

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published