Giter Site home page Giter Site logo

Comments (13)

eleith avatar eleith commented on July 17, 2024

can you try 0.8.5? i was able to get it to work for me.

from emailjs.

snsparrish avatar snsparrish commented on July 17, 2024

Just tried 0.8.6 and the same issue with ECONNREFUSED

from emailjs.

eleith avatar eleith commented on July 17, 2024

do you pass in {ssl:true} or {ssl:true, port:465}?

what is the exact error that is returned, and when does it return (upon connecting to the server or sending your first email to the server) ?

from emailjs.

maheshnreddy avatar maheshnreddy commented on July 17, 2024

Even I'm getting same error when {ssl: false} and I could successfully send mail through mail server via command line (telnet server-name 25).

Please let me, if any one solved this issue.

Thanks
Mahesh

from emailjs.

eleith avatar eleith commented on July 17, 2024

i've been testing emailjs lately on many different email servers and still haven't run into this one (works with gmail, outlook, zimbra).

does this error happen when running on linux, mac or windows? what email server are you connecting to?

i'ld like to fix it, but will need to replicate it on my end or get more details on this one...

from emailjs.

maheshnreddy avatar maheshnreddy commented on July 17, 2024

Its with outlook SMTP server on Windows 7.

from emailjs.

eleith avatar eleith commented on July 17, 2024

is this with smtp.live.com or a private smtp server?

from emailjs.

maheshnreddy avatar maheshnreddy commented on July 17, 2024

sorry, forgot to mention those details in previous message. Its private (corporate) mail server.

from emailjs.

eleith avatar eleith commented on July 17, 2024

if you uncomment the following line, you'll get output from every exchange with the SMTP server.

https://github.com/eleith/emailjs/blob/master/smtp/client.js#L9

this output might help greatly in narrowing down the root cause.

from emailjs.

maheshnreddy avatar maheshnreddy commented on July 17, 2024

Much appreciated for your support and effort to resolve the problem.

from emailjs.

eleith avatar eleith commented on July 17, 2024

can not reproduce

from emailjs.

Spin1987 avatar Spin1987 commented on July 17, 2024

Hi, i'm using emailjs on a windows maschine and i get folling error:
uh oh { [Error: connect ECONNREFUSED]
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect' }
{ [Error: connection encountered an error]
code: 5,
previous:
{ [Error: connect ECONNREFUSED]
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect' },
smtp: undefined }
{ [Error: connect ECONNREFUSED]
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect' }

My settings are:
"mail": {
"user": "[email protected]",
"password": "password",
"host": "smtp.gmail.com"
}

server.send({
text: "test email",
from: "[email protected]",
to: "[email protected]",
//cc: "else [email protected]",
subject: "testing emailjs"
}, function (err, message) {
console.log(err || message);
});

No matter which settings i have. With ssl or not, with an different port or with the default port. Do you think it is an issue on node js side? Do i need some more settings or an running mail server?

from emailjs.

eleith avatar eleith commented on July 17, 2024

have you tried to turn on debug mode in smpt.js? that would output some more detail console that can give clues as to where this might be going wrong.

from emailjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.