Knowledge base for Cobisi's products and services
var verifier = new EmailVerifier(); var 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 verifier.VerificationTaskGroupCompleted += (sender, args) => { Console.WriteLine("Task group completed."); }; // Binds to the event which notifies single task completion verifier.VerificationTaskCompleted += (sender, args) => { Console.WriteLine("Address {0} => {1}", args.Task.EmailAddress, args.Task.Result); }; // Start the batch processing asynchronously verifier.VerifyAsync(taskGroup); // Not a true multi-threaded application, we'll block for test purposes Console.ReadLine();
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.