Marak/node_mailer — pull request #65 by smurthas (2012-02-14 23:22:09+00:00)
Title: Pass the correct callback to dispatchMail

If several messages got queued up during the ```fs.readFile``` call for a single template, when the template was finally loaded, ```dispatchMail``` would get called for each message, but would get passed the callback associated with the first one (the only one that invoked the ```fs.readFile``` call). This bundles the callback in with the message itself, ensuring that the callback associated with that message is the one passed to ```dispatchMail```