[英]Method Verify mailkit
How to run Verify the existence of a mailbox address.?如何运行验证邮箱地址是否存在。?
http://www.mimekit.net/docs/html/M_MailKit_Net_Smtp_SmtpClient_Verify.htm http://www.mimekit.net/docs/html/M_MailKit_Net_Smtp_SmtpClient_Verify.htm
using (var client = new SmtpClient())
{
client.Connect("smtp.mail.ru", 465, true);
client.Authenticate(name, pass);
var d = client.Verify(email);
}
Error MailKit.Net.Smtp.SmtpCommandException: "unrecognized command"错误 MailKit.Net.Smtp.SmtpCommandException:“无法识别的命令”
Most SMTP servers do not support the VRFY command anymore.大多数 SMTP 服务器不再支持 VRFY 命令。 Your server doesn't support it which is why you are getting an error.
您的服务器不支持它,这就是您收到错误的原因。
Possible a duplicate.可能重复。 You can read this question , it's in
PHP
but all the concepts are the same for your situation.您可以阅读此问题,它位于
PHP
但所有概念对于您的情况都是相同的。
As jstedfast said, that command isn't supported anymore and to sum up your reading: There is not a reliable way to verify that anymore because of spams.正如 jstedfast 所说,不再支持该命令并总结您的阅读:由于垃圾邮件,没有可靠的方法来验证它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.