IsValidEmail
Validate Email ID in C#
Source
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()