-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
emailjs throwing a getaddrinfo ENOTFOUND smtp.gmail.com error #136
Comments
i can not replicate. this error "getaddrinfo ENOTFOUND smtp.gmail.com" likely means your DNS is not resolving smtp.gmail.com for some reason. try on another machine to verify that this is indeed the case |
Hello , |
same here |
3 similar comments
same here |
same here |
same here |
After that I solved this problem. just have a try nslookup smtp.gmail.com |
I have tried the above code |
just for those who could be having this error. Please check that you did not copy by mistake a white-space before or after the value of the SMTP server host. In that case DNS resolver fails. |
@eleith do you think we should trim the host etc. strings? |
@zackschuster yes, a basic trim whitespaces before after and remove unallowed characters for domain name would be good. Sorry for answering instead of @eleith |
@zackschuster / @gelinger777 good point. i think it depends on what is the best way to define the intent of the user input in this API. there are two approaches
if we isolate this treatment to the host, trimming feels appropriate / high confidence enough without having to wade deeper into what to do with all the other input handling =] |
@eleith i agree, the first change should be limited to host & more changes can be explored later if desired or necessary. off the top of my head i think we would want to evaluate the existential checks next (e.g. |
@eleith should we move forward with host trimming? |
sounds good! |
var email = require('emailjs/email');
I am getting the following error in console
The text was updated successfully, but these errors were encountered: