Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
.I have done Email validation but i want to check this particular Email id Exist or Not..E.g. suraj@infosys.com... This Email id is registered on email but how to i check using C# .Net???


What I have tried:

I have done Email validation but i want to check this particular Email id Exist or Not..E.g. suraj@infosys.com... This Email id is registered on email but how to i check using C# .Net???
Posted
Updated 22-Jun-19 7:37am
Comments
MadMyche 22-Jun-19 6:19am    
Are you looking for an email address on your domain or are you talking about random addresses?
Member 12508017 22-Jun-19 8:03am    
if it is not possible then how they are doing https://www.zerobounce.net/
Dave Kreskowiak 22-Jun-19 8:20am    
They have a massive database of "known-good" email addresses.

You can't.
There are ways to request a read receipt - so when a message is looked at, you get told it happened - but ... most email systems either ignore it or ask the user directly if they want to return one.
Why? Spammers. If spammers can tell an email address that is "in use" from one that isn't, they can target just the "working ones" and spam / phishing becomes more of a problem that it currently is.

If you are trying to verify an email address is alive when a user signs up, then send them a "confirmation" email with a link back to your site that they have to follow within 24 hours before they can log in and use the site.
But ... be aware that there are several "throwaway email" sites out there to allow users to read the confirmation email, follow the link and then discard the email address - any indication that an email is "live" and "monitored" is valid only for that specific email - it does not mean it will still be alive or monitored in 30 seconds time! I use them for sites I'm not sure about that demand an email address for registration.
 
Share this answer
 
Please study how SMTP protocol works and how different SMTP service providers function. They do not allow, or sometimes they hide away the fact whether an account exists or not.

I once worked on a project where we had to accept and receive the emails for every recipient email address (yes, they never had to exist!) and then send a receipt which meant that the account exists; when it didn't!

So, good practice is to consider sending an email verification token and require the user to verify their emails that way. There is no other way you can check if an email account exists, doesn't exist, or whether is in use or not. There are many ways in which users can bypass this check as well—I have a domain name, and I can forward a random email for my domain to my own email address and verify from there. This is the reason most organizations now rely on a credit card information—to your surprise maybe, that can be bypassed too! :laugh:

Just trust the users, do your thing and leave the rest of worries. :-)
 
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