Validate Email Address in C#

β€œWe can use the MailAddress class to determine whether a given email address is valid or not. The following code example shows us how we can validate an email address with the MailAddress class in C#.”

var addr = new System.Net.Mail.MailAddress(email);
return addr.Address == email;