Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I want to check whether a given email exists or not using .net
i have reffered some codes but most of it leading to some online tools is there any other way of achieving it?
Posted
Updated 18-Jun-12 19:24pm
v2
Comments
Pankaj Nikam 19-Jun-12 1:24am    
To what you want to compare? I mean is it your own database you want to compare or you want to validate the email ID that it exists or not in the real world for example aslfjsdakjalfj@asfajslfj.com does not exist anywhere... is it what you want to compare? Please clarify.

Please refer:
Check if email address really exist or not using c#[^]
This article demonstrate basic technique for checking if particular email is exist or not; using SMTP protocol specifications in RFC 821.
 
Share this answer
 
You May first check the entered email id with the custom validator or regular validator to confirm that whether it is in the correct format or not
then
We have to check whether it is present or not ....This you can do by validating whether a Failure mailer demon is being recieved ...assign some flag for the delivery failure and

one drawback of the above method is you may get a delivery failure due to network issues also try to get the error codes and only if it is input adreess not found ..you can confirm that email is not present ...try to code it up now
 
Share this answer
 
look these links


This[^]
This[^]
This[^]
This[^]
 
Share this answer
 
v2
According to your question there are two possibilities whether you have to check the existing email id in your own database or in outer world also.

in first case you can check easily by executing a query in your own database.
in second case you can send an email to the respective emailid and send a link to redirect to your own website for confirmation of valid email id. if the user confirms than it is a valid email id else no. and develop a scheduler to delete the invalid email id in fixed days by you.


Note : Make proper validation for your email id so that the chances for failure of delivering email to the respective email id will decrease.


Thanks,
Ashish
 
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