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: 11.2.0 build 590 for .NET 4.5
Syntax
public event VerifiedEventHandler Verified

Value

Type: MailBee.AddressCheckVerifiedEventHandler
Remarks
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.
Examples
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);
        }
        Console.WriteLine();
    }

    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.
        valid.DnsServers.Autodetect();

        // 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";
        valid.Log.Clear();

        // 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[] { "jdoe@company.com", "bob@example.com", "alice@domain.com" };

        // Run the verification in single-threaded mode.
        valid.Verify(emails);
    }
}
See Also