using Extended MAPI to retrieve recipients in _ItemSend

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)
 
D

Dmitry Streblechenko

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
 
G

Graham Charles

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top