View Single Post
  #6  
Old August 8th 06, 06:19 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Is ItemSend really too late to set SentOnBehalfOfName ?

I don't think that was done on purpose, just a plain bug IMHO.

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

"Oliver Giesen" wrote in message
...
Dmitry Streblechenko wrote:

It could be that Outlook resolves the SentOnBehalfOfName property to
the relevant PR_SENT_REPRESENTING_xxx properties before ItemSend is
called. Did you try to set PR_SENT_REPRESENTING_xxx properties
explicitly using MAPI?


I didn't so far but tried just now and it works great. I used
Redemption's ISafeMailItem's Fields collection to set
PR_SENT_REPRESENTING_ENTRYID and it works like a charm...

Thanks a bunch once more!


BTW: the same phenomenon appears when using the BeforeCheckNames
event... strange indeed. I mean, what's the point of the event when I
cannot adjust the recipients?

Cheers,

Oliver



Ads