Advanced email validation component for Microsoft .NET
var engine = new VerificationEngine();
// ...
var result = engine.Run("bob@example.com",
VerificationLevel.CatchAll).Result;
switch (result.LastStatus)
{
case VerificationStatus.Success:
// The mailbox exists and the server is not a catch-all
break;
case VerificationStatus.ServerIsCatchAll:
// The server acts as a catch-all for the requested domain
break;
case VerificationStatus.CatchAllConnectionFailure:
// A network failure happened while performing the catch-all
// test
break;
case VerificationStatus.CatchAllValidationTimeout:
// A timeout occured while performing the catch-all test on
// the server; we need to increase the related settings value
break;
// TODO: Add more cases, if needed
default:
// ...
break;
}