A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Adding X-Protective-Marking



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 21st 07, 05:47 AM posted to microsoft.public.outlook.program_addins
Peter
external usenet poster
 
Posts: 2
Default Adding X-Protective-Marking

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


Ads
  #2  
Old February 21st 07, 03:45 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Adding X-Protective-Marking

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" wrote in message
...
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


  #3  
Old February 22nd 07, 08:01 PM posted to microsoft.public.outlook.program_addins
Peter
external usenet poster
 
Posts: 2
Default Adding X-Protective-Marking

Hi Ken

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

Cheers
Peter


"Ken Slovak - [MVP - Outlook]" wrote in message
...
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" wrote in message
...
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




 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Marking Mail as Read [email protected] Outlook - General Queries 2 July 18th 06 02:32 PM
Marking Mail as Read Brian Outlook - General Queries 1 June 9th 06 07:21 AM
Marking Contacts as Private TSCAndrew Outlook - Using Contacts 2 March 17th 06 02:41 PM
Marking as do not archive Michael Bauer Outlook and VBA 1 March 2nd 06 05:14 PM
OE freeze when marking newsgroups catch up tentai Outlook Express 5 January 9th 06 07:20 AM


All times are GMT +1. The time now is 08:40 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.