node package manager

js-jango

A javascript interface to the JangoMail service

js-jango

Overview

Node implementation of the JangoMail API (see http://api.jangomail.com/).

The library currently allows you to:

  • Send a mass email campaign
  • Pause a campaign
  • Resume a campaign
  • Cancel a campaign
  • Resend a campaign

Example Usage

var SendMassEmail = require("js-jango").SendMassEmail;
 
var fieldNames = ["FirstName","LastName","EmailAddress"];
var testContacts = [ {FirstName: "Bryan", LastName: "Rockwood", EmailAddress: "bryan.rockwood@pollenware.com"} ];
var contactInfo = {"fieldNames" : fieldNames, "addresses" : testContacts};
var initData = {
    username : "username",
    password : "password",
    server : "api.jangomail.com",
    subject : "Howdy Ho, %%FirstName%%!",
    fromEmail : "node-jango@pollenware.com",
    fromName : "New JangoMail Node Interface",
    messagePlain : "Greetings %%FirstName%% %%LastName%%,\n\nThis is a test of the Node interface to JangoMail." +
            "Your email address is %%EmailAddress%%.  Have a great day!\n\n\n -- BaseJangoRequest (BJR) OUT!",
    contactInfo: contactInfo
};
 
var test = new SMJE.SendMassJangoEmail(initData);
 
test.sendToJango().then(function(res) {
    // Do crazy stuff with the return response..... 
});

Installation

npm install js-jango

Usage

License

MIT https://github.com/Pollenware/moose/raw/master/LICENSE

Meta