admin管理员组文章数量:1331683
I have tried so many npm packages to verify the email address and domain name. Here are the some of the npm packages I have tried
email-check,
email-verify,
email-existence,
legit,
email-validator and,
email validation
all these results in domain name existence and some other checks only. But I have to verify the particular email address exist in the domain. How should I achieve this... Can anyone pls help me to find it out Thanks in advance!!
I have tried so many npm packages to verify the email address and domain name. Here are the some of the npm packages I have tried
email-check,
email-verify,
email-existence,
legit,
email-validator and,
email validation
all these results in domain name existence and some other checks only. But I have to verify the particular email address exist in the domain. How should I achieve this... Can anyone pls help me to find it out Thanks in advance!!
Share asked Mar 16, 2018 at 6:13 RamyachinnaRamyachinna 4831 gold badge11 silver badges20 bronze badges 10-
3
Just send a
verify link
on the email given by the user and let them verify it. There is a reason this procedure is widely use by most applications. – Bk Santiago Commented Mar 16, 2018 at 6:15 - yes, I am using that. But I want to check without sending email to the user..That is my concern. – Ramyachinna Commented Mar 16, 2018 at 6:18
- 1 You can't programmatically verify an email address. The server its at won't for both security and privacy reasons allow that. – Asons Commented Mar 16, 2018 at 6:19
- You can try with npm legit, it will be handy to check domain existance, or else you can go with Kick Box validation which is a paid service – GunasekaranR Commented Mar 16, 2018 at 6:22
- yes,@Gunasekaran I am using kickbox API ..But the requirement is without using That. – Ramyachinna Commented Mar 16, 2018 at 6:24
1 Answer
Reset to default 7Today (and probably never) it is not possible to programmatically verify an email address.
The server its at won't for both security and privacy reasons allow that.
And for a good reason. With such solution, spammers etc. could traverse all the servers and get every email address available.
As a note, there are tools out there that claims being email verification solutons. They generally use DNS validations, including MX record(s) lookup, but they can't with 100% accuracy say if an email address exist or not, they can only get what the email server is setup to give them.
Domain name can be though, and NSLookup is one of the services that can do that.
Updated
I found a few good reads at SO (where the first is actually a dupe, though can't close it myself)
How to check if an email address exists without sending an email?
How to validate an email address using a regular expression?
How to validate an email address in JavaScript?
本文标签:
版权声明:本文标题:node.js - How should I verify email address existence and domain name existence in javascript or nodeJs? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742266705a2443536.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论