业余之作

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


hotmail收邮件-源码联系我~



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();

        }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
  • 2022-02-24
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2021-10-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2021-12-10
  • 2021-07-29
  • 2021-05-29
  • 2022-12-23
相关资源
相似解决方案