Accessing multiple MS-Outlook profiles with C# .net

  • Thread starter Thread starter Amarendra
  • Start date Start date
A

Amarendra

I am trying to find out a way to access multiple MS-Outlook profiles/Accounts
from C#.net and Outlook object model.
 
What do you mean by accessing multiple profiles?

Do you want to log into multiple profiles using code (only one Outlook
session can run at a time, you have to log off to be able to log into a new
profile), or do you want to read profile information from the registry?

There is a profile API available but you can only work with it using
Extended MAPI (C++ or Delphi only) or from ProfMan, a library that comes
with Redemption (www.dimastr.com/redemption).
 
What i mean by "accessing multiple Profiles " means, let say MS-Outlook is
setup with 10 profiles and there will be 10 database respectively.
My program will be scheduled and it will access required messages details
from each of the 10 profiles and update database for respective profiles.
 
You'd have to set the Mail applet in the Control Panel to prompt for a
profile on Outlook start and be there to select each profile in turn,
exiting and restarting Outlook each time you wanted to use a different
profile.

To be able to log into profiles one after another using a profile logon
you'd need to be using CDO 1.21 or Extended MAPI or a MAPI wrapper such as
Redemption (www.dimastr.com/redemption).
 
Back
Top