Advanced email validation component for Microsoft .NET
var verifier = new EmailVerifier();
// ...
var result = verifier.Verify("alice@example.com",
VerificationLevel.Mailbox);
if (result.IsSuccess)
{
// The mailbox exists
}
else
{
switch (result.Status)
{
case VerificationStatus.MailboxTemporarilyUnavailable:
// Possible greylisting condition, needs to queue
// this validation again, in a couple of minutes
// ...
break;
// TODO: Add more cases, if needed
default:
// ...
break;
}
}