Skip to content

Instantly share code, notes, and snippets.

@foxbunny
foxbunny / mailer.js
Created July 29, 2011 14:32
Nodemailer wrapper
var fs = require('fs'),
path = require('path'),
nodemailer = require('nodemailer'),
template = require('template'),
cache = {},
config = require('../config');
function MailerError(msg) {
this.msg = msg;
}