在Asp.net中阅读邮件的问题 [英] Problem reading Mails in Asp.net

查看:96
本文介绍了在Asp.net中阅读邮件的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在使用OpenPop.Net库来读取我的asp.net应用程序中的邮件。问题是使用端口995或587我得到

由于意外的数据包格式导致握手失败





这是我正在使用的代码



 Pop3Client pop3Client =  new  Pop3Client(); 
pop3Client.Connect(MailServer,Port,chkSSL);

pop3Client.Authenticate(UserName,Password);
Session [ Pop3Client] = pop3Client;





Connect方法发生异常。

解决方案

< blockquote>您需要连接到正在侦听的端口。如果您使用的是未加密的POP3,请使用端口110.端口587与POP3无关。


Hello ,
I am using OpenPop.Net library to read mails in my asp.net application.The problem is that with port 995 or 587 i am getting

the handshake failed due to an unexpected packet format 



this is the code that i am using

Pop3Client pop3Client = new Pop3Client();
pop3Client.Connect(MailServer, Port, chkSSL);

pop3Client.Authenticate(UserName,Password);
Session["Pop3Client"] = pop3Client;



the exception occurs in the Connect method.

解决方案

You need to connect to a port that is listening. If you're using non-encrypted POP3 then use port 110. Port 587 is nothing to do with POP3.


这篇关于在Asp.net中阅读邮件的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆