Skip to content

Pollenware/js-jango

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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/C2FO/js-jango/raw/master/LICENSE

##Meta

About

Node implementation of the JangoMail API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published