pierreco / MailgunNodeMailer

NodeMailer + Mailgun + jade template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

##NodeMailer + Mailgun + jade template

####Installation

$ npm install

####Configuration Open https://mailgun.com/app/domains

Copy Domain name and API Key in config.js

####Test

$ node demo/test.js

#####Example

var Sender = require('../sender');

var billingInfo = {
  receiverEmail: 'test@yopmail.com',
  senderEmail : 'support@mycompany.com',
  subject : 'Billing e.g. invoices and receipts',
  receiverName: {
    first: 'Pierre',
    last: 'Cordier'
  },
  date:'June 01 2016',
  billing : {
    ref: '#1234',
    total : '33.98',
    service1 :{
      price: '19.99'
    },
    service2 :{
      price: '9.99'
    },
    service3 :{
      price: '4.00'
    }
  }
}

Sender.sendEmail('billing', billingInfo);

####Sources Mailgun.com

Node Email Templates

Transactional Email Templates

Nodemailer

Nodemailer Mailgun Transport

About

NodeMailer + Mailgun + jade template


Languages

Language:HTML 84.2%Language:JavaScript 15.8%