View Single Post
  #1  
Old October 16th 07, 11:43 AM posted to microsoft.public.outlook.program_addins
Ivan
external usenet poster
 
Posts: 39
Default How to create mail item in OL 2007 using MAPI

I create mail items using MAPI. It works fine in OL XP/2003.
But when I try to set some properties in OL 2007 I have MAPI_E_NO_ACCESS
error:
hr = spMsg-SetProps(sizeof(props) / sizeof(props[0]), (LPSPropValue)&props,
NULL); // hr == MAPI_E_NO_ACCESS.
After that I see created mail item in given folder but only the recipient
property is filled.

So, how can I fill other message properties in OL 2007 using MAPI ?
Ads