The process for creating a Outlook profile in Outlook 2016 has changed. This article documents the simple steps to create one using MFCMAPI. Note: For non-developers this is not the recommended way of creating profiles in Outlook 2016. It is recommended that you use Outlook to create the profile as the logic for this is all built-in. However, you can use these steps for troubleshooting purposes.
- Open up MFCMAPI, go to Profile > Show Profiles
- Click Actions > Create Profile
- Give the new profile a name and click OK.
- Select the new profile
- Type MSEMS for the service name
- Uncheck the box which says "Display Service UI"
- Click OK
- Double-Click the newly created profile.
- Single-Click the MSEMS service.
- Find the Exchange Profile section. This is a little difficult in Outlook’s MAPI since in 2010 and above we no longer have the global profile section. To find the Exchange Profile Section find the property PR_EMSMDB_SECTION_UID (0x3D150102) in the properties for the service. The value will be the GUID of the profile section persisted in binary form which will be used in the subsequent steps. You will need to remember this value.
- Double-Click the MSEMS service.
- Find the Exchange profile section by using the UID gathered from Step 10 and single-click it to select the row.
- Go to Property > Additional Properties
- Click Add and add the following properties PR_PROFILE_USER_SMTP_EMAIL_ADDRESS_W (0x6641001F) and PR_DISPLAY_NAME_W.
- Click OK
- Configure each property using the guidance below.
|Value: SMTP Address of the user|
|Value: The display name of the user|
- Find the property PR_STORE_PROVIDERS in the Exchange profile section. This is the EMSMDB profile section. Note the value of it.
- Find the corresponding profile section whose UID matches the value of PR_STORE_PROVIDERS.
- Repeat Steps 13 - 17 for that profile section too.
- Select Session > Logon and display store, and select the profile if it is not already selected.
- You may be prompted for credentials, but it should work successfully.
The display name on the Exchange profile section is not required, but I included it here for simplicity.
In Step 14, it is okay if the property name is not resolved to PR_PROFILE_USER_SMTP_EMAIL_ADDRESS_W.
Sample code can be found here that shows you how to do this programmatically.
If you're creating a profile for an Outlook.com or Hotmail.com address please consult this blog post as well.