Client area
|
Shopping cart (empty)

  • Products

    Developer tools

    Microsoft .NET components & libraries

    • EmailVerify.NET
      Email validation component, featuring full IETF-compliant syntax validation, DNS checking, mailbox existence test and tools for advanced batch processing.
    • ProxyClient.NET
      Powerful proxy client component with support for SOCKS 4, SOCKS 4a, SOCKS 5 and HTTP proxy servers, allowing to establish proxied connections from both new and existing sockets.
  • Services
    • Web-based, hosted email validation service
      Hosted email validation service that allows to validate lists of email addresses with ease, combining the power of our email validation technology with an array of fast, dedicated servers hosted at multiple worldwide locations and a super-cool web interface.

  • Online demos

    Email validation

    • Validate email addresses
      Free online demo of our email validation technologies, featuring full IETF-compliant syntax validation, DNS checking and mailbox existence test.

  • Purchase

    Products

    • EmailVerify.NET
      • Licensing / editions
      • Volume discounts
      • Upgrades
      Purchase
    • ProxyClient.NET
      • Licensing
      • Volume discounts
      • Upgrades
      Purchase

    Services

    • Hosted email validation
      • Pricing
      • Terms & conditions
      Purchase

    Request a quote

    • Contact us
      Send a request to our sales staff.

  • Support

    Knowledge base

    • Browse the knowledge base
      Support documents for our products and services.

    Request support

    • Contact us
      Send a request to our customer support staff.

  • About us

    About Cobisi

    About our company, our team, our mission

    • Our company
      Cobisi company information.
    • Our mission
      About what we aim to achieve.

    Contact us

    • Contact us
      Send a request to our customer support staff.

  • Company blog

    Latest posts from our blog

    Shared thoughts about our technologies, products and services

    • EmailVerify.NET is now part of the Cobisi family of products
      Published on Thursday, January 19, 2012

    • Just launched: hosted email validation service beta
      Published on Friday, August 05, 2011

    • New support for SMTP dialog extraction and analysis and advanced proxy binding
      Published on Tuesday, July 05, 2011

Knowledge base

Knowledge base for Cobisi's products and services

  • Contact us
  • Knowledge base

How to inspect email validation failures (C#)

  • Knowledge base
  • » EmailVerify.NET
  • » Code samples

The following example verifies a single e-mail address up to mailbox existence and, should it find the validation is not successful, it would inspect some of the possible failure types. 

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 ...
	}
}


Not what you are looking for?

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.

Contact us
Products
  • EmailVerify.NET
    • Features
    • Online demo
    • Download
    • Licensing / editions
    • Release notes
    • Purchase
  • ProxyClient.NET
    • Download
    • Licensing / editions
    • Release notes
    • Purchase
Services
  • Hosted email validation
    • Online demo
    • Download
    • Terms & conditions
    • Purchase
Support
  • Knowledge base
  • Request support

Client area
  • Licenses & products
  • Hosted email validations
About Cobisi
  • The company
  • Mission
  • Contact us
Copyright © 2005-2012 Cobisi. All rights reserved.
Cobisi - Via Caratti, 38 - 35132, Padova - Italy (European Union)
VAT ID: IT04391160282