Click here to Skip to main content
16,016,736 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to take valid emails in asp.net without accepting 123@gmail.ccc,456@yahoo.cmm like invalid mails
Posted
Comments
Jignesh Khant 27-May-14 1:21am    
You have regular expression validators for this in asp.net.
Member 10378142 27-May-14 1:39am    
Thanks for Reply,
It is accepting 123@gmail.cmm or 123@gmail.cpm. i dont want to accept those invalid domains. It Should accept only 123@gmail.com,@yahoo.com,@co.in.
Rahul Kumar 27-May-14 3:38am    
you can do on thing, split the email on the basis of '@' and last index of '.'. create list all valid domains and check domain in list if domain exist in domain than return true otherwise false.

1 solution

Hello ,
You may use Regular Expression to check a email address.
Refer:Check email address by Regualr Expression
thanks
 
Share this answer
 
Comments
Member 10378142 27-May-14 1:37am    
Thanks for Reply,
It is accepting 123@gmail.cmm or 123@gmail.cpm. i dont want to accept those invalid domains. It Should accept only 123@gmail.com,@yahoo.com,@co.in.

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