using Higuchi.Net.Pop3; Pop3Client pop3Client = new Pop3Client("username", "pass", "srv"); pop3Client.Authenticate(); long totalCount = pop3Client.GetTotalMessageCount(); for (int emailCounter = 1; emailCounter < totalCount + 1; emailCounter++) { Pop3Message mg = pop3Client.GetMessage(emailCounter); sr.WriteLine(mg.Subject); } pop3Client.ExecuteQuit(); Console.WriteLine("Finished!"); sr.Close(); Console.ReadLine();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)