Knowledge base for Cobisi's products and services
var verifier = new EmailVerifier(); var result = verifier.Verify("john@example.org", VerificationLevel.Mailbox); if (result.IsSuccess) { Console.WriteLine("Mailbox verification test succeeded!"); } else { // The test failed. Let's see why... if (result.IsSyntaxFailure) { // The e-mail address is not syntactically valid // TODO: Discard this address immediately } else if (result.IsTimeoutFailure) { // It failed because of a timeout, thus it could be valid // TODO: Save a reference to this address for future retries } else if (result.IsNetworkFailure) { // It failed because of a network failure: chances are high that this // address is not valid! // TODO: Discard this address or save it for future retries } // TODO: Test fo other failure types and act accordingly switch (result.Status) { // case ... } }
Please don't hesitate to contact us if you have problems with any of our products or services; technical support is always free of charge, and requests made by registered clients will have higher priority.