Jun 04 2021
We are not able to query MAPI property PR_BODY_HTML_W for mails with HTML format stored in Exchange 2016 and Exchange 2019 Server mailboxes.
On making below MAPI call from for PR_BODY_HTML_W from our application code, we receive an error MAPI_E_NOT_FOUND.
HRESULT hRes = HrGetOneProp(getMAPIPtr(), *pulPropTag, ppSPropVal);Where,
getMAPIPtr() returns a LPMAILUSER*pulPropTag is of type ULONG - contains property tag vaue 0x1013001f of PT_UNICODE typeppSPropVal is of type LPSPropValue*
- On checking the mail properties with MFCMAPI tool we see the alias property PR_HTML and not PR_BODY_HTML_W. However there too we see MAPI_E_NOT_FOUND.
- We have tried setting the 'Cached Mode' to ON in Outlook client as mentioned in below old forum( https://social.technet.microsoft.com/Forums/ie/en-US/00086c4a-2cd9-4052-8282-ea8a777f7eff/event-id-4... ). But this did not help.
- We also confirmed from code that PR_STORE_SUPPORT_MASK has STORE_HTML_OK flag, which means message store that supports HTML as per documentation link: https://docs.microsoft.com/en-us/office/client-developer/outlook/mapi/pidtagbodyhtml-canonical-prope...
Is there anything we are missing here? Is there any setting on Exchange server side?