![](/img/trans.png)
[英]MailKit: throws Authentication Failed while calling Authenticate method from the Pop3Client class
[英]Error while reading mail from pop3client
我正在尝试使用以下代码读取来自pop3clent的电子邮件:
Pop3Client pop = new Pop3Client();
pop.Connect(mailHost, portNum, false);
pop.Authenticate(userName, passWord,AuthenticationMethod.UsernameAndPassword);
而且在验证时出现错误:
"Object reference not set to an instance of an object."
如果您确定发布的代码中的所有对象都不包含空值,则可能会在其他地方出现错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.