Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Adding X-Protective-Marking

Geek News

Adding X-Protective-Marking
"Peter" <palace[ at ]internode.on.net> 2/21/2007 5:47:18 AM
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


Re: Adding X-Protective-Marking
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 2/21/2007 3:45:08 PM
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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Peter" <palace[ at ]internode.on.net> wrote in message
news:eFseAvXVHHA.4796[ at ]TK2MSFTNGP05.phx.gbl...
[Quoted Text]
> 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
>

Re: Adding X-Protective-Marking
"Peter" <palace[ at ]internode.on.net> 2/22/2007 8:01:18 PM
Hi Ken

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

Cheers
Peter


"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> wrote in message
news:eI0YE%23cVHHA.1200[ at ]TK2MSFTNGP02.phx.gbl...
[Quoted Text]
> 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.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "Peter" <palace[ at ]internode.on.net> wrote in message
> news:eFseAvXVHHA.4796[ at ]TK2MSFTNGP05.phx.gbl...
>> 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
>>
>


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net