Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
Hi CPians,
I am developing software for sending newsletters via e-mail to a list of addresses.

the current release checks the syntactic correctness of the email addresses through a regular expression, but I need to integrate a real check on the existence of the email.

Can you help me? Thank you
Posted
Comments
Afzaal Ahmad Zeeshan 6-Oct-15 11:32am    
Send them an email, if there is a mailbox to claim the email, it is valid. Otherwise it is fake.
Sirstee5S 22-Jan-17 4:28am    
I've used this C# code to validate email (or emails), it checks email's format, domain's name, server and email's existence.

You can't validate that an email is genuine. If genuine emails are important to you you'll need to send an email to the given address with a validation link. Also please do your own basic research before asking a question, there are a lot of articles concerning this already.
 
Share this answer
 
There's no way to check if email exists in real, unless you send an email and you'll get a reply. ;)
 
Share this answer
 
If, by "real check on the existence of the email", you mean actually validate that an email address really exists (and not only checking that it is well-formed), you may experience some hard times.

Indeed, there exists a command in the SMTP protocol to check a domain for the existence of a specific address, but for security reasons most mail servers do not allow its external use.

So, if I were you I would seriously question this requirement.

Hope this helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900