That said, I would not recommend the use of Mime Kit for simply validating an email address (it's way overkill).
Instead, I have another (tiny) library that can be used for that which is written in accordance with the specification: Email Validation It's a fairly simple class that implements an actual email address tokenizer instead of using error-prone regexes that no one seems to ever get hello deepak, you cant check that ..because many browsers does not support this kind of functionality ..still you can give it try ..check this : I have been doing the same in my projet.
Your program accepts an email address as input, and you need to verify that the supplied address is valid.
Scan the email address supplied by the user, and validate it against the lexical rules set forth in RFC 822. Unfortunately, the syntax is complex, and it supports several address formats that are no longer relevant.
If the character that follows @ is not an opening bracket, match one alphanumeric character with a value of A-Z, a-z, or 0-9, followed by zero or more occurrences of a word character or a hyphen, followed by zero or one alphanumeric character with a value of A-Z, a-z, or 0-9, followed by a period. To determine whether an email address is valid, pass the email address to the Mail Address. methods can be included in a library of regular expression utility methods, or they can be included as private static or instance methods in the application class.I validate the email address at the client side by using the Regular Expression validator.Then in the code behind I write the code to send the mail and I am sending synchronous mail (which actually responds when mail is received at the receiver end).regular expression pattern to separate the domain name from the email address.The third parameter is a Match Evaluator delegate that represents the method that processes and replaces the matched text.
This pattern can be repeated one or more times, and must be followed by the top-level domain name. To include them in a regular expression library, either copy and paste the code into a Visual Studio Class Library project, or copy and paste it into a text file and compile it from the command line with a command like the following (assuming that the name of the source code file is Regex or Regex Utilities.vb: You can also use the Regex.