Skip to content

Instantly share code, notes, and snippets.

@edwardhotchkiss
Created May 25, 2012 02:53
Show Gist options
  • Save edwardhotchkiss/2785481 to your computer and use it in GitHub Desktop.
Save edwardhotchkiss/2785481 to your computer and use it in GitHub Desktop.
postage app blog post
var postage = require('postage')('YOUR API KEY');
var options = {
recipients: 'email@address.com',
subject: 'Subject Line',
from: 'sender@example.org',
content: {
'text/html': '<p>Some awesome content</p>',
'text/plain': 'Plain text goes here (if any)'
}
};
postage.send(options, function callback(error, msg) {
if (error) {
console.error(error);
} else {
console.log(message);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment