Knowledge base for Cobisi's products and services
using System.Net;
using Cobisi.EmailVerify;
class Program
{
static void Main()
{
// TODO:
Retrieve a real list of public endpoints
IPEndPoint[] availableEndPoints = new IPEndPoint[]
{
new IPEndPoint(IPAddress.Parse("10.0.1.1"), 0),
new IPEndPoint(IPAddress.Parse("10.0.1.2"), 0),
new IPEndPoint(IPAddress.Parse("10.0.1.3"), 0)
};
EmailVerifier verifier = new EmailVerifier();
// Configure the component to cycle the local SMTP endpoint
int iCurrentEndPoint = 0;
verifier.LocalSmtpEndPointBinding += (sender, args) =>
{
// Retrieve the next endpoint
var endPoint = availableEndPoints[iCurrentEndPoint % availableEndPoints.Length];
args.LocalSmtpEndPoint = endPoint;
iCurrentEndPoint++;
};
// TODO: Use the component
}
}
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.