POP3协议中的RETR命令为何不能显示邮件的内容?
如题,先谢谢各位。。。
主要代码如下:
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;
主要代码如下:
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;
...全文
相关推荐
HCSR04超声波接线图
HCSR04超声波接线图
基于STM32F103ZET6的HCSR04的超声波测距并用LCD显示
利用STM32单片机驱动HCSR04超声波测距模块,并增加蜂鸣器报警装置和LCD显示装置。LCD实时显示测距仪和被测物之间的距离信息并用点阵表示。距离过近则蜂鸣器报警。
CC2530+HCSR04超声波测距
使用CC2530+HCSR04超声波传感器采集距离参数并通过串口发送到上位机
STM32F103RCT6-HCSR04超声波测距.zip
STM32F103RCT6-HCSR04超声波测距
stm32f103rct6+hcsr04超声波模块.rar
使用单片机stm32f103rct6和hcsr04超声波模块进行测距,调试通过,分享给大家!



