mahmoud helalii

mahmoud helalii

  • NA
  • 20
  • 873

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

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