0.0.3 • Published 11 years ago

mandrill-mail v0.0.3

Weekly downloads
1
License
-
Repository
github
Last release
11 years ago

#What is

This is a simple wrapper to send email within the mandrill api.

#Getting started

Just install with

npm install mandrill-mail

The there is just a send() function who excepts 3 params. There is an example:

var client = require('mandrill-mail');

var data = {

	'html' : 'this is great', // Message itself in html format
	'subject' : 'great subject', //  the subject
	'from_email': 'mysuperemail@gmail.com', // Who sends the email
	'from_name' : 'mauro', // the sender name
	'to': [
			{                                   		 // the array who contains the recivers
	    		'email': 'mysuperemail@gmail.com',		// to email adress
	    		'name' : 'Mauro'						// to name
			},
			{
				'email' : 'foo@gmail.com',
				'name' : 'foo'
			}
		]
};

/**
 * [description]
 * @param  {string} The api key
 * @param {object} An obj containing all the information
 * @param {function} A callback function
 */
client.send('my-secret-key', data, function(json){
	console.log(json)
});
0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago

0.0.0

11 years ago