admin管理员组

文章数量:1330410

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
 |  Show 5 more ments

1 Answer 1

Reset to default 7

Today (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?

本文标签: