View Single Post
  #2  
Old October 16th 07, 06:44 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to create mail item in OL 2007 using MAPI

What are the properties that you set? How do you open spMsg?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Ivan" wrote in message
...
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