Can I use Extended Mapi to store info about MailItem in Outlook?

K

Kristy

Hi

I am running Office 2000/XP.

I have a com add-in that can be used to create personalised emails.
If one of these emails is created I currently use Outlook "user
properties" so that I can identify it when it is sent and add some
"disclaimer" info to the bottom.

This works fine except that I want to be able to stop this from
printing (programmatically) on my pc or the pc I have sent the email
to.

I found a post in this newsgroup that said... "another option is to
create your Boolean user defined field using CDO code, which will
produce a field that Outlook won't know about and therefore won't
print". This sounds like a great idea but I don't want to use CDO to
do it (can't ensure that CDO 1.21 library will be loaded on every
pc).

I am hoping that someone can tell me if I can do a similar thing using
Outlook Redemption (extended MAPI)ie, which fields can I write to and
how do I access them?

Thanks

Kris
 
K

Ken Slovak - [MVP - Outlook]

You can do what you want using Redemption or Extended MAPI. Extended
MAPI can only be directly coded using C++ or Delphi and has a long
learning curve. Redemption can be used from VB or VBA and is a COM
wrapper for some of Extended MAPI.

There's sample code on the Redemption Web site that shows how to add
named properties to an item using Redemption. See the information
about HrSetOneProp there. Click on the Utilities button at the top of
the Web site to get there.
 
K

Kristy

Ken Slovak - said:
You can do what you want using Redemption or Extended MAPI. Extended
MAPI can only be directly coded using C++ or Delphi and has a long
learning curve. Redemption can be used from VB or VBA and is a COM
wrapper for some of Extended MAPI.

There's sample code on the Redemption Web site that shows how to add
named properties to an item using Redemption. See the information
about HrSetOneProp there. Click on the Utilities button at the top of
the Web site to get there.

Hi Ken

Thanks so much, using Named Properties worked like a charm!

Kristy
 

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