1
Answer

I need to login to a specific profile, not the default one

Microsoft.Office.Interop.Outlook.Application oApp = new Microsoft.Office.Interop.Outlook.Application(); Microsoft.Office.Interop.Outlook.MAPIFolder inboxFolder = null; oApp = new Microsoft.Office.Interop.Outlook.Application(); oApp.Session.Logon("[email protected]", "*******", false, true); Microsoft.Office.Interop.Outlook.NameSpace oNS = oApp.GetNamespace("MAPI"); inboxFolder=oNS.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderInbox);
Answers (1)