Skip to content

[Bug] -- ECONNREFUSED #18

@hugdubois

Description

@hugdubois

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions