using Extended MAPI to retrieve recipients in _ItemSend

  • Thread starter Thread starter Graham Charles
  • Start date Start date
G

Graham Charles

Hey, all:

I've been using a mixture of Extended MAPI calls and the SafeOutlook library
to retrieve properties of messages on receipt, but I'm having trouble
extracting those properties during the Application_ItemSend event,
specifically the Recipient list.

I've used many different methods to try to get at the recipient list
(including retrieving the table), but they all come up empty. In short:

oMailItem.Recipients.Count ' using an Outlook MailItem
object.

returns 1, while

oSafeMailItem.Recipients.Count ' using the SafeMailItem that wraps
extended MAPI...

returns 0. The recipients table is empty.

Is this a known problem with _ItemSend()? Is there a workaround? (At the
moment, I'm running this as VBA code, but will probably evenutally port to a
COM add-in.)

Thanks,

g.


Graham Charles
Ars Indicii Information Design
(e-mail address removed)
 
Save the message (Item.Save) before accessing the recipients with Redemption
to make sure the changes are committed and accessible.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Thanks; that's done it!

g.


Dmitry Streblechenko said:
Save the message (Item.Save) before accessing the recipients with Redemption
to make sure the changes are committed and accessible.

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


to
 
Back
Top