SilverLight
SilverLight

Reputation: 20468

how check a validated Email Exist Or Not Without Sending test Email by c# codes?

how can we check that a validated Email exist Or Not Without Sending test Email by c# codes?
we can check Validation of that email by many ways...
but what about existence?
is it possible to do that or not ?

thanks in advance

Upvotes: 0

Views: 7162

Answers (4)

Suits999
Suits999

Reputation: 369

You can use a Regex Validation on the form before the user submits the data. It's an inbuilt tool in Microsoft Visual Studio where you can pretty much drag and drop :) You should be able to find it in the validation section . Regular expression Validator

Upvotes: -1

Ryan Ternier
Ryan Ternier

Reputation: 8804

You should look at these websites. I've used a similar method to these three in the past when validating users emails for a federal website that required an authentic email address.

http://tools.email-checker.com/

http://verify-email.org/

http://www.technixupdate.com/check-whether-an-email-id-is-valid-or-not/

A mail server will usually quickly send back a response telling you if the email is valid or not, that is what you're going to be looking for.

As well, SO already has a few posts on this: Checking if an email address exists

is one of them.

Update:

I love the existence tag...!

Upvotes: 3

James Johnson
James Johnson

Reputation: 46047

I don't know if there's a good way to do what you're looking for, but a solution that might get you part of the way there is to ping the domain to at least make sure that exists.

Here's an MSDN link which explains how to ping from .NET:

http://msdn.microsoft.com/en-us/library/system.net.networkinformation.ping.aspx

Upvotes: 0

Bali C
Bali C

Reputation: 31231

You could possibly use C# to run a cmd command - telnet. Then output the results to a text file and read them into to your C# app. This should help - http://www.webdigi.co.uk/blog/2009/how-to-check-if-an-email-address-exists-without-sending-an-email You will need to know the details for the mail server names though. You might be able to do this directly from C# but I have only done it through telnet.

Upvotes: 2

Related Questions