Adding X-Protective-Marking

P

Peter

Greetings

I am a newbie so please be gentle:)

Am using OL2003, VSTO 2005SE with VS2005 (VB.NET)

I have managed to create an addin using VSTO a toolbar with dropdown on a
new mail message that adds a security classification to the subject line
before the mail is sent. What I am also trying to do is add a custom header
(X-Protective-Marking:) to the mail message before it is sent. I can't
easily see how to do this.

Any help or pointers so other examples would be greatly appreciated.

Cheers
Peter Lock
Palace Software
 
K

Ken Slovak - [MVP - Outlook]

You can't use the Outlook object model to add an x-header, you would have to
use a lower level API such as CDO 1.21 (optional installation and not
supported in .NET code), Extended MAPI (C++ or Delphi only and not supported
in .NET code) or a COM wrapper around MAPI like Redemption
(www.dimastr.com/redemption).

A CDO sample to create an x-header is shown in a custom form at
http://www.ivasoft.biz/addheader3.html.
 
P

Peter

Hi Ken

Thank you for that. I thought I might have to dig out my old C++ books:)

Cheers
Peter
 

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