I'm trying to read mail from different mail platforms on c#. Many people say:
Microsoft.Office.Interop.Outlook.NameSpace nameSpace =
application.GetNamespace("MAPI");
nameSpace.Logon("", "", Missing.Value, Missing.Value);
inboxFolder =
NameSpace.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFo
lders.olFolderInbox);
Console.WriteLine("Folders: {0}", inboxFolder.Folders.Count);
Although this hasn't worked for me.
It tells me
Microsoft.Interop.Outlook
doesn't exist.
I want to find out how to do this
Thank you