• Products

    Microsoft .NET

    Microsoft .NET components, libraries & tools

    • EmailVerify for .NET
      Email validation library, featuring full IETF-compliant syntax validation, DNS checking, mailbox existence test and tools for advanced batch processing.
    • ProxyClient for .NET
      Powerful proxy client library with support for SOCKS 4, SOCKS 4a, SOCKS 5 and HTTP proxy servers, allowing to establish and accept remotely proxied connections.
    • MVC Extensions
      Powerful routing engine extensions for ASP.NET: allows to declare routes by way of attributes applied to MVC actions and generates URLs using compiler-safe lambda expressions.

    Microsoft Silverlight

    Microsoft Silverlight components, libraries & tools

    • EmailVerify for Silverlight
      Email validation library with Data Annotations support, featuring advanced syntax verification, ISP-specific syntax checks and disposable email address handling.

    Microsoft Visual Studio extensions

    Development tools, integrated into your favorite IDE

    • Routing Assistant
      FREE

      A cool and free Visual Studio extension which allows to easily browse, define, match and filter ASP.NET MVC routes within ASP.NET applications and web sites.

  • Purchase

    Products

    • EmailVerify for .NET
      • Licensing / editions
      • Volume discounts
      • Upgrades
      Purchase
    • ProxyClient for .NET
      • Licensing
      • Volume discounts
      • Upgrades
      Purchase
    • MVC Extensions
      • Licensing
      • Volume discounts
      • Upgrades
      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.
    • Follow us
      Follow us on Twitter.

    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

    • Routing Assistant reached version 1.7
      Published on Thursday, March 21, 2013

    • Verifalia: a new, complete hosted email validation service
      Published on Thursday, December 6, 2012

    • Routing Assistant v1.4 released
      Published on Friday, October 12, 2012

Knowledge base

Knowledge base for Cobisi's products and services

  • Contact us
  • Knowledge base

How to validate a list of email addresses (VB)

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

In the following example we verify a batch of email addresses all at the once, using the EmailVerify.NET's multi-threaded validation engine. Upon finishing, the verification results are written to the console window.

Sub Main()
    Dim verifier = New EmailVerifier()
    Dim taskGroup = New VerificationTaskGroup()

    ' Set up some addresses to check and add them to the verification group

    taskGroup += New VerificationTask("alice@example.com", VerificationLevel.Smtp)
    taskGroup += New VerificationTask("bob@example.com", VerificationLevel.CatchAll)
    taskGroup += New VerificationTask("charlie@example.org", VerificationLevel.CatchAll)

    ' Binds to the event which notifies groups completion

    AddHandler verifier.VerificationTaskGroupCompleted, AddressOf OnVerificationTaskGroupCompleted

    ' Binds to the event which notifies single task completion

    AddHandler verifier.VerificationTaskCompleted, AddressOf OnVerificationTaskCompleted

    ' Start the batch processing asynchronously

    verifier.VerifyAsync(taskGroup)

    ' Not a true multi-threaded application here, we'll block until receiveing console input

    Console.ReadLine()
End Sub

Private Sub OnVerificationTaskGroupCompleted(ByVal sender As Object, ByVal args As VerificationTaskGroupCompletedEventArgs)
    Console.WriteLine("Task group completed.")
End Sub

Private Sub OnVerificationTaskCompleted(ByVal sender As Object, ByVal args As VerificationTaskCompletedEventArgs)
    Console.WriteLine("Address {0} => {1}",
        args.Task.EmailAddress,
        args.Task.Result)
End Sub


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 for .NET
    • Features
    • Online demo
    • Download
    • Licensing / editions
    • Release notes
    • Purchase
  • ProxyClient for .NET
    • Download
    • Licensing / editions
    • Release notes
    • Purchase
  • MVC Extensions
    • Tutorial
    • Free edition download
    • Licensing
    • Release notes
    • Purchase
Support
  • Knowledge base
  • Request support

About Cobisi
  • The company
  • Mission
  • Follow us
  • Contact us
Copyright © 2005-2022 Cobisi Research. All rights reserved.
Cobisi Research - Via Della Costituzione, 31 - 35010, Vigonza - Italy (European Union)
VAT ID: IT04391160282