Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jondcallahan on github.
  • I am jondcallahan (https://keybase.io/jondcallahan) on keybase.
  • I have a public key whose fingerprint is F11A 091E EBE0 4691 DC82 E946 AD7F 8DAA F5BB CE85

To claim this, I am signing this object:

@jondcallahan
jondcallahan / mandrill-send.js
Created February 4, 2016 22:24
Send an html email from the command line via Mandrill. Useful for rapidly testing html emails.
var email = require('mandrill-send')('MANDRILL_API_KEY');
var fs = require('fs');
require.extensions['.html'] = function (module, filename) {
module.exports = fs.readFileSync(filename, 'utf8');
};
var htmlEmail = require("PATH_TO_FILE.HTML");
email({