IsValidEmail

 public static bool IsValidEmail(this string email)
    {
        try
        {
            var addr = new System.Net.Mail.MailAddress(email);
            return true;
        }
        catch
        {
            return false;
        }
    }
Example:
string ToAddress = "check@test.com";
ToAddress.IsValidEmail()

Description

Validate Email ID in C#

Details

Double click on the code to select all.

 

;