Пример #1
0
 private void Connect()
 {
     //Cliente.Connect("", 995, true);
     //Cliente.Authenticate("*****@*****.**", "Tomate01");
     Cliente      = new Email.Net.Pop3.Pop3Client();
     Cliente.Host = "pop-mail.outlook.com";
     Cliente.Port = 995;
     Cliente.SSLInteractionType = Email.Net.Common.Configurations.EInteractionType.SSLPort;
     Cliente.Username           = "******";
     Cliente.Password           = "******";
     Cliente.Login();
 }
Пример #2
0
        public void MostrarMails(IAsyncResult result)
        {
            Email.Net.Pop3.Pop3Client colection = result.AsyncState as Email.Net.Pop3.Pop3Client;

            colection.EndRecv(result);
            //foreach (var item in colection)
            //{
            //    Console.WriteLine("{0}", item.From.DisplayName);
            //    Console.WriteLine("{0}", item.Date);
            //    Console.WriteLine("---------------------------");
            //}
        }