EmailAddressValidatorVerified Event
Occurs once an e-mail addresses in a bulk series has been verified.

Namespace: MailBee.AddressCheck
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
public event VerifiedEventHandler Verified


Type: MailBee.AddressCheckVerifiedEventHandler
You must subscribe to this event to check verification statuses of e-mail addresses in a bulk series. For addresses which have been skipped from verification in Verifying event, this event is not raised.
Note Note
This event is never raised by Verify(String) overload which processes a single address only (rather than a bulk).
Note Note
This event is not available for .NET Core and UWP.
This sample verifies a bulk of 3 addresses, using Verified event. Data source is DataTable. To see how to use this event in case of IDataReader, see Verify(IDataReader, String) sample.
using System;
using MailBee;
using MailBee.AddressCheck;
class Program
    // This method will be executed for each e-mail address in the bulk,
    // whenever it gets verified, with either positive or negative result.
    private static void valid_Verified(object sender, VerifiedEventArgs e)
        Console.WriteLine("*** Verified ***");
        Console.WriteLine("Email: " + e.Email);
        Console.WriteLine("Result: " + e.Result.ToString());
        if (e.Reason != null)
            Console.WriteLine("Reason: " + e.Reason.Message);

    static void Main(string[] args)
        EmailAddressValidator valid = new EmailAddressValidator("MN110-0123456789ABCDEF-0123");

        // To perform DNS MX lookup queries, we need some DNS servers for that.

        // Logging into a file is not required for the component to work
        // but helpful for debugging and understanding things under the hood.
        valid.Log.Enabled = true;
        valid.Log.Filename = @"C:\Temp\log.txt";

        // Subscribe to event.
        valid.Verified += new VerifiedEventHandler(valid_Verified);

        // Populate an array with some e-mails. You can also use DataTable as a source.
        string[] emails = new string[] { "", "", "" };

        // Run the verification in single-threaded mode.
See Also