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

  • Thread starter Thread starter Kristy
  • Start date Start date
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
 
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.
 
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
 
Back
Top