1
        try
        {
            new System.Net.Mail.MailAddress("email here");            
        }
        catch (FormatException)
        {

        }        

when i use email "invalidEmailAddress" the result is valid but when i use "golf@gmail" without .com it becomes valid

Sarawut Positwinyu
  • 4,974
  • 15
  • 54
  • 80
  • 1
    In an cooperation environment, a domain does not have to have .com/net/org... 'gmail' could be a valid domain, so, the email golf@gmail could be a valid email address internally. usually, people use regular expression to valid email address. there are lots of examples. – Sharique Ansari Feb 17 '15 at 10:09

0 Answers0