1
Reply

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

mahmoud helalii

mahmoud helalii

Dec 11 2016 7:20 AM
263
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)