Assure a valid email that .Net can actually send an email to is passed.

protected void ValidEmail(object source, ServerValidateEventArgs args)
		{
			try
			{
				var a = new MailAddress(args.Value);
			}
			catch (Exception ex)
			{
				args.IsValid = false;
				return;
			}
			args.IsValid = true;
		}

source

Comments are closed.