Is Valid Email Address : Mail « Network « C# / C Sharp






Is Valid Email Address

  


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.ComponentModel;

namespace NearForums
{
  public static class Utils
  {

    public static bool IsValidEmailAddress(string value)
    {
      return Regex.IsMatch(value, @"^[\w\.=-]+@[\w\.-]+\.[\w]{2,3}$");
    }

  }
}

   
    
  








Related examples in the same category

1.SmtpClient: From, Subject, Body, Attachments, To
2.Mail Test
3.A POP3 e-mail checkerA POP3 e-mail checker
4.Fancy Mail Test
5.Mail Attach Test
6.Send Email
7.Send HTML Mail
8.Is Valid Email
9.Is Email
10.Sends a MailMessage object using the SMTP settings.
11.Smtp Send