469,631 Members | 1,666 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,631 developers. It's quick & easy.

Verify Email Address

116 100+
I am trying to verify that the email addresses entered into our site are valid. Basically are they fake addresses or not and if I send them an email there will be an inbox associated with that address.

All I keep finding on the web is info for validating with regex... If anyone knows how to do this or knows of a site that could help, please let me know.

May 15 '08 #1
2 1029
Shashi Sadasivan
1,435 Expert 1GB
regex can only make sure that the email adddress entered is sytacticaly correct

i.e. there is an '@' in between the words and end with a .com, /.edu, or other domains (list goes bigger, as you go international)

To check if an email actually exists, a good way would be to send an email, if a failure email is recieved from the email provider, you should move that email entered into your own database, to check against before you verify another email.
May 15 '08 #2

You don't HAVE to use Regex (Although it a lot more in depth). I would suggest for starting out you can to EmailAddress.Contains("@"); and EmailAddress.Contains(".");

This is a start. As for verifying, you can just make a random numbers then make concat a string together.

string toSend = "Please click the link below to register : http://MyWebSite.Com/WebMail/Register_" + EmailAddress + "_Code" + RandomNumber + ";

Granted you would have to store the ID in MySql for verification back.
May 16 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by NotGiven | last post: by
4 posts views Thread by vishal | last post: by
2 posts views Thread by Cherry | last post: by
6 posts views Thread by johnt | last post: by
2 posts views Thread by Wayne Wengert | last post: by
1 post views Thread by Grey | last post: by
3 posts views Thread by Grey | last post: by
7 posts views Thread by =?Utf-8?B?Tmlrb2xheSBQb2Rrb2x6aW4=?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.