Click here to Skip to main content
15,881,089 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In my windows application i want to do email id validation for (.com .net .org etc..)
e.g: myexample@gmail.com
in that validation for ".com" if any person write by mistake ".con" then they should get popup message.

So can anyone solved this problem?
Posted

1 solution

Why? That would be enumerating something you can't possibly enumerate. There are FAR more namespaces than the ones you're listing and you're not taking into account country specific postfixes either.

In other words, this is a BAD idea.

A better one would be to ask for the email address twice and compare them. Then, once entered, send the user a confirmation email with a link to click back into your system to confirm that the email address is valid.
 
Share this answer
 
Comments
lewax00 5-Jun-12 13:55pm    
This is especially true since applications have been opened for custom TLDs. +5
thatraja 5-Jun-12 14:46pm    
5!

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