Adding property to attachment via macro

B

BZ

Hey there,

I have a utility (created by someone else in our company) that processes
certain messages. They speak another language and are in another TZ with 6
hours difference so communication is a little tough. :) Their utility
expects the mail item to have a certain message class, and have an
attachment with a certain property on it (which is normally there but on all
but a few). I have written a simple macro to change the message class and
this works. Also I can add the property to the attachment using Outlook Spy,
and then the utility will work fine on the mail item.

Question: Can someone show (or point me to a link) example macro code for
setting a property on an attachment? Doubt it matters for the example, but
the property tag I need to add is 0x370E001E (PR_ATTACH_MIME_TAG).

Thanks!
BZ
 
D

Dmitry Streblechenko

You cannot add that property using the Outlook Object Model, you will need
to use Extended MAPI (C++/Delphi only), CDO 1.21 or Redemption.

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

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