我已购买第三方控件以验证电子邮件地址来自 Cobisi.com。,我配置了邮件服务器的IP地址和端口号。请看下面。
EmailVerifier verifier = new EmailVerifier();
verifier.LocalHostFqdn = "mail.xyz.com";
verifier.LocalSenderAddress = "test@xyz.com";
verifier.LocalSmtpEndPoint = new IPEndPoint(IPAddress.Parse("10.0.0.9"), 25);
var result = verifier.Verify(objContact.ContactValue, VerificationLevel.Mailbox);
if (result.IsSuccess)
{
return true;
}
else
{
return false;
}
但是当我运行此代码然后给出异常,例如“请求的地址在System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot,SocketAddress socketAddress)的上下文中无效”