How to check whether an Email ID exists or not.

Posted by Vasanthmvp under ASP.NET on 10/3/2012 | Points: 10 | Views : 3936 | Status : [Member] | Replies : 4
Hi, I have an application where i have to check whether an email id is really existing or not.

1. Can we do this by sending a dummy packet first, and if it returns an error (Mail Delivery system) then Email-ID does not exists, if it is success then the actual mail should be sent. If so, how to get the return value of Mail Delivery System or
ServicePointManager.ServerCertificateValidationCallback = delegate(object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; };

2. Heard Spammers do use VRFY command and check with DSN response(2.0.0 for user exist and 5.1.1 for user doesn't exists).

How to implement this through ASP.NET.

Awesome Coding !! :)


Responses

Posted by: Saratvaddilli on: 10/3/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
write ontextchange() for the text box where user enters the emailid and in that function compare emailid with your database and check whether the emailid is already exists in you database or not



Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Vasanthmvp, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vasanthmvp on: 10/3/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Sarat, I dont want to check whether an Email ID is existing in my database or not.
I want to check whether an email Id is really existing or not whether it may be @gmail, @yahoo or anything.. irrespective of domain.
Eg: A user may give a text in the email id format, which might not be existing/valid.. so, i want first check whether it does really exist or not ryt.

The solution should be other than directly Handling SMTP exception.

Awesome Coding !! :)

Vasanthmvp, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saratvaddilli on: 10/5/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Then try this ,
try sending a mail to that email id , if it does not exist then it will show a delivery failure .
take a flag if that flag was true email id exists or else it was false

Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Vasanthmvp, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jayakumars on: 10/5/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi

i think we are purchase some services for this.

Mark as Answer if its helpful to you

Kumaraspcode2009@gmail.com

Vasanthmvp, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response