How to get email from pop.gmail.com using c#?
- by jiya gupta
hi,
i want to read email from pop.gmail.com using console application.
Pop3 client = new Pop3();
client.Connect("pop.gmail.com",995);
client.Login("xyz@searce.com", "12345");
//client.IsAuthenticated = true;
// get message list
Pop3MessageCollection list = client.GetMessageList();
if (list.Count == 0)
{
Console.WriteLine("There are no…