I'm trying to get outlook Email using Microsoft.Office.Interop.Outlook but in cases where the folder has a lot of emails (for example 1904 Emails) I'm getting only 571 emails.
here's my code:
Application oApp = new Application();
_NameSpace oNS = (_NameSpace)oApp.GetNamespace("MAPI");
MAPIFolder inbox = oNS.GetDefaultFolder(OlDefaultFolders.olFolderInbox);
var emails = inbox.Items;
int emailsCount = emails.Count;
when I open outlook I see the number 1904 next to the Inbox folder, but when I scroll down I see the line "there are more items in this folder on the sever"
dose anyone know how can I download all my Emails using outlook interop?