Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
485 views
in Technique[技术] by (71.8m points)

node.js - How should I verify email address existence and domain name existence in javascript or nodeJs?

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!!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...