Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A nodejs client for the Mad mimi api
JavaScript
Tree: e49250f3b5

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
lib
spec
LICENSE
package.json
readme.md

readme.md

Madmimi Client

A simple client wrapper to be able to send mails using the mad mimi api Developer api help

Usage

Using the library is quite straight forward, for a full example see the examples folder.

Installation

npm install madmimi-node

Creating

var describe('madmimi');
var madmimi = new Madmimi("useremail","api-key");

Send mail

var email_options = {
  promotion_name:"Test Promotion",
  recipient:"Jimi Hendrix <jimi@electricladyland.com>",
  subject:"Test Promotion",
  from:"no-reply@guitargear.com",
  raw_html:"<html><head><title>Great promotion!</title></head><body>Cool guitar stuff[[tracking_beacon]]</body></html>"
};

madmimi.sendMail(email_options, function (transaction_id) {
  console.log("Email transaction is: " + transaction_id)
});

Email Status

madmimi.mailStatus("email_id", function (msg) {
  console.log("status: " + msg);
});

Todo

  • Add send to list
  • match ruby gem usage

Copyright

Copyright © 2011 Garren Smith. See LICENSE for details.

Something went wrong with that request. Please try again.