登录
首页 » C# » C# pop3 邮件接收程序

C# pop3 邮件接收程序

于 2014-11-02 发布
0 213
下载积分: 1 下载次数: 0

代码说明:

private void Connect_Click(object sender, System.EventArgs e)        {            //将光标置为等待状态            Cursor cr = Cursor.Current;            Cursor.Current = Cursors.WaitCursor;            String a ,b,c;              //用110端口新建POP3服务器连接            Server = new TcpClient(PopServer.Text, 110);            Status.Items.Clear();             try            {                //初始化                NetStrm = Server.GetStream();                RdStrm = new StreamReader(Server.GetStream());                Status.Items.Add(RdStrm.ReadLine());                 //登录服务器过程                Data = "USER " Username.Text CRLF;                szData = System.Text.Encoding.ASCII.GetBytes(Data.ToCharArray());                NetStrm.Write(szData, 0, szData.Length);                Status.Items.Add(RdStrm.ReadLine());                 Data = "PASS " Password.Text CRLF;                szData = System.Text.Encoding.ASCII.GetBytes(Data.ToCharArray());                NetStrm.Write(szData, 0, szData.Length);                Status.Items.Add(RdStrm.ReadLine());                 //向服务器发送STAT命令,从而取得邮箱的相关信息:邮件数量和大小                Data = "STAT" CRLF;                szData = System.Text.Encoding.ASCII.GetBytes(Data.ToCharArray());                NetStrm.Write(szData, 0, szData.Length);                //Status.Items.Add(RdStrm.ReadLine());                 //改变按钮的状态                Connect.Enabled = false;                Disconnect.Enabled = true;                Retrieve.Enabled = true;                 //将光标置回原来状态                Cursor.Current = cr;             }            catch (InvalidOperationException err)            {                Status.Items.Add("Error: " err.ToString());            }        }

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • SSgameRun
    :本系统属于小型的局域网监控系统,可以对某一台计算机进行屏幕监控,本系统主要实现以下功能:  系统采用人机交互的方式,界面美观友好。  屏幕信息需要时时显示,网络延时不能大于1秒。  服务器端可以随时运行,只要客户端运行,就能够显示屏幕信息。  系统运行时占用内存不能大于10MB,以免影响系统性能。  客户端运行时需要隐藏显示窗口,起其感觉不到在运行(network monitoring system that can carry out the screen of a computer monitor, the system achieve the following features:  system is the way human-computer interaction, interface, beautiful and friendly.  need to constantly display screen information, the network delay is not greater than 1 second.  server can be run at any time as long as the client runs, will be able to display information.  run-time memory for the system can not be larger than 10MB, so as not to affect system performance.  need to hide the client run-time display window, from its feel in the run.)
    2010-10-13 16:58:55下载
    积分:1
  • CS
    说明:  csharp的通讯程序 很好学习资料 希望大家能获得帮助(csharp' s a good learning materials communication program hope that we can get help)
    2009-11-29 23:16:12下载
    积分:1
  • 051018NBSI25
    cookie注入工具cookie注入工具
    2010-02-18 16:48:39下载
    积分:1
  • 实验一 图像颜色特征提取
    图像颜色特征提取 颜色是彩色图像最重要的内容之一,被广泛用于图像检索中。但从图像中提取颜色特征时,很多算法都先要对图像进行量化处理。量化处理容易导致误检,并且产生的图像特征维数较高,不利于检索(qqwxcszcsefxzvczfeczx)
    2018-04-20 08:49:51下载
    积分:1
  • UDP_Port
    c#监听指定端口的UDP信息,可灵活读取指定端口信息并分析。(c# UDP listen port specified information, the flexibility to read the specified port information and analysis.)
    2013-08-15 20:57:12下载
    积分:1
  • CPP_Socket
    windows客户端与服务器之间的网络通信代码(windows between the client and server network communications code)
    2013-07-11 23:32:54下载
    积分:1
  • cmd1012
    服务级后门T-Cmd源代码服务级后门T-Cmd源代码(Service-level backdoor T-Cmd source service-level backdoor T-Cmd source code)
    2016-10-22 10:46:35下载
    积分:1
  • ksniffer_src
    WINPCAP 抓包工具,可以用来抓包等功能,十分简单的代码,可以直接使用(WINPCAP tools)
    2015-01-05 22:01:56下载
    积分:1
  • TinyVpnDotNet 国外vpn 换ip 示例源码 DotRas实现
    DotRas实现的
    2014-03-18下载
    积分:1
  • WL_IPpack02
    获得IP地址和MAC地址的对应关系网络课实验。 根据IP地址发送和接受ARP包获得对应MAC地址。(Access to correspondence between the experimental class network IP address and MAC address. Send and receive ARP packets to obtain the corresponding MAC addresses based on IP addresses.)
    2014-05-21 08:56:22下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载