node-mail icon indicating copy to clipboard operation
node-mail copied to clipboard

[Bug] -- ECONNREFUSED

Open hugdubois opened this issue 14 years ago • 0 comments

Hi,

I use node v0.4.8 and I have an error with this stack trace :

node.js:134 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: ECONNREFUSED, Connection refused at Socket._onConnect (net.js:601:18) at IOWatcher.onWritable as callback

Perhaps you can fix this with add this code to ./node-mail/lib/smtp.js l.66:

..... this.sock .on('error', function(err) { self.emit('error', err); }) .once('connect', function() { .......

What do you think ?

hugdubois avatar Aug 19 '11 19:08 hugdubois