双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

POP3协议中的RETR命令为何不能显示邮件的内容?

bluecat_0616 bluecat_0616 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
如题,先谢谢各位。。。
主要代码如下:

private TcpClient mailclient;
private NetworkStream ns;
private StreamReader sr;
private StreamWriter sw;

sw.WriteLine("Stat");//执行pop3权限检查命令
sw.Flush();
m_response = sr.ReadLine();
string[] nummess = m_response.Split(' ');
totmessages = Convert.ToInt16(nummess[1]);//获取服务器中有几封信件
if (totmessages > 0)
{
this.L_Conut.Text = "you have " + totmessages + " messages";
}
else
{
this.L_Conut.Text = "you have no messages";
}
sw.WriteLine("retr 1");
sw.Flush();
m_response = Convert.ToString(sr.ReadLine());
this.Tb_Body.Text = m_response;
...全文
评论 6
收藏 已收藏
分享
返回顶部
bluecat_0616
C# 111,129 成员 642,540 内容