zoukankan      html  css  js  c++  java
  • hotmail收邮件源码联系我~

    业余之作

    源码很简单 ,实现了收邮件,读邮件,删邮件






            static void Main()

            {

                HotMailPop3 pop3 = new HotMailPop3();

                pop3.decoder = Encoding.Default.GetDecoder();

                if (pop3.LoginMailServer())

                {

                    pop3.StreamGetMailList();

                    string a = Console.ReadLine();

                    Console.WriteLine("邮件" + a + "的内容!");

                    StreamWriter sm_2 = new StreamWriter("2.txt");

                    sm_2.WriteLine(pop3.StreamGetMailIndex(int.Parse(a)));

                    sm_2.Close();

                }

                if (pop3.LoginMailServer())

                {

                    //  pop3.StreamDelMailIndex(2);

                }

                StreamWriter sm = new StreamWriter("1.txt");

                foreach (var item in pop3.GetMailList)

                {

                    sm.WriteLine("分割线________________________________");

                    sm.WriteLine(item.Value);

                }

                sm.Close();

                pop3.OutMailServer();

            }

  • 相关阅读:
    关键字--static
    java注解
    服务器、应用服务器、web服务器、容器
    进程和线程
    Tomcat7目录结构详解(非常详细)
    HTML小练习
    HTML学习笔记
    javaoo总结二
    javaoo总结一
    python核心-类-1
  • 原文地址:https://www.cnblogs.com/mokliu/p/2138799.html
Copyright © 2011-2022 走看看