Hi Eric,
Based on my research, to create MAPI profile, you need to leverage the low
level MAPI, which need C++ coding.
Here is the information I f ound for your reference.
Creating a Profile with NEWPROF (Exchange Server 2003)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mapi/html/3
240685a-f8a8-48a1-8ec5-8dac8869877f.asp
266352 INFO: MAPI Is the Only Way to Programmatically Change Profiles
<
http://support.microsoft.com/?id=266352>
Sample code for creating profile:
228736 SAMPLE: Profman2.exe - MAPI Profile Manager v2.0
<
http://support.microsoft.com/?id=228736>
Customizing Outlook Profiles by Using PRF Files
http://office.microsoft.com/en-us/assistance/HA011402581033.aspx
The Microsoft? Outlook? profile file (PRF file) allows you to quickly
create MAPI profiles for Microsoft Office Outlook 2003 users. The PRF file
is a text file with syntax that Microsoft Outlook uses to generate a
profile. By using a PRF file, you can set up new profiles for users or
modify existing profiles without affecting other aspects of your Outlook
(or Microsoft Office) installation. You can also manually edit a PRF file
to customize Outlook to include Outlook settings or MAPI services that are
not included in the Custom Installation Wizard user interface.
Also for IMAP account, you need to use PRF.
In profile, you can insert additional email account for various providers
(such as Exchange, IMAP, POP3, etc).
You can easily understand the concept of PRF from following document.
Whitepaper: Configuring Outlook Profiles by Using a PRF File
http://download.microsoft.com/download/4/6/2/462196eb-fa7c-4c9b-a233-53e67a4
a3ebf/PRFWhtepaper.exe
Create an Outlook Profile File (*.PRF)
http://www.outlook-tips.net/howto/prf.htm
*Sample Profile Content from White Paper*
; **************************************************************
; Section 1 - Profile Defaults
; **************************************************************
[General]
Custom=1
ProfileName=EveryAccount ; Name of the profile. Any string
; value is valid.
DefaultProfile=Yes ; Will this be set as the default
; profile once created?
OverwriteProfile=Yes ; Overwrite an existing profile if
; it has the same name? A value of
; Append means to modify the profile
; settings. No means don't overwrite.
ModifyDefaultProfileIfPresent=FALSE ; When modifying a profile, if no
; match is found, modify the default
; profile?
DefaultStore=Service2 ; Which store will contain mail?
; Exchange Server or Personal
; Folders? Section 2 below defines
; this.
; **************************************************************
; Section 2 - Services in Profile
; **************************************************************
[Service List]
Service1=Microsoft Exchange Server ; The list of services to configure
; within a profile. Each service
ServiceEGS=Exchange Global Section ; listed here will be configured
; under its appropriate header
Service2=Personal Folders ; listed in Section 4.
Service3=Outlook Address Book
Service4=LDAP Directory
Service5=Personal Address Book
;ServiceX=Microsoft Outlook Client
;***************************************************************
; Section 3 - List of internet accounts
;***************************************************************
[Internet Account List]
Account1=I_Mail ; List of Internet accounts to be
; configured with the profile.
Account2=IMAP_I_Mail ; Multiple accounts can be
; configured.
Account3=INET_HTTP ; Each account will be listed in
; Section 5.