node_mailer icon indicating copy to clipboard operation
node_mailer copied to clipboard

Pass the correct callback to dispatchMail

Open smurthas opened this issue 13 years ago • 1 comments

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

smurthas avatar Feb 14 '12 23:02 smurthas

Do you think you'll be able to pull this in anytime soon? We've been pointing to my fork in our package.json for a while now. Thanks!

smurthas avatar Mar 10 '12 17:03 smurthas