Rank: Newbie
Groups: Registered
Joined: 11/26/2019(UTC)
Posts: 1
Location: edmonton
I'm using EAGetMail library to read emails from Gmail. This is my code:
Quote: private void readMails(){ MailServer oServer=new MailServer("pop.gmail.com", "something@gmail.com", "noneedtoseethis", ServerProtocol.Pop3); MailClient oClient = new MailClient("Client"); oServer.SSLConnection = true; oServer.Port = 995; try { oClient.Connect(oServer); MailInfo[] infos = oClient.GetMailInfos(); Console.WriteLine(infos.Length); for (int i = 0; i < infos.Length; i++){ MailInfo info = infos[i]; Mail oMail = oClient.GetMail(info); Console.WriteLine("From: {0}", oMail.From.ToString()); //oClient.Delete(info); } oClient.Quit(); } catch (Exception ep) { Console.WriteLine(ep.Message); } }
Though it appears the only thing that it gets are the new messages I receive
which are 2 or 3 every five minutes.
But I want to read all emails I have in the inbox, not just the new coming messages
How can I do that?
Edited by moderator Sunday, December 1, 2019 8:17:25 PM(UTC)
| Reason: unnecessary external link is forbidden
Rank: Administration
Groups: Administrators
Joined: 11/11/2010(UTC) Posts: 1,152
Thanks: 9 times Was thanked: 55 time(s) in 55 post(s)
Forum Jump
EmailArchitect Support
Email Component Development
- EASendMail SMTP Component - .NET Version
- EASendMail SMTP Component - Windows Store Apps
- EASendMail SMTP ActiveX Object
- EAGetMail POP3 & IMAP4 Component - .NET Version
- EAGetMail POP3 & IMAP4 ActiveX Object
Exchange Server and IIS SMTP Plugin
- DomanKeys/DKIM for Exchange Server and IIS SMTP
- Disclaimer and S/MIME for Exchange Server and IIS
EmailArchitect Email Server
- EmailArchitect Email Server (General)
- EmailArchitect Email Server Development
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.