How should I hook the New email process in Outlook 2007? - 10-09-2008 , 07:53 PM
I want to be able to hook into the process of Outlook when the user
clicks the "New" button for a new email.
Ultimately I want to dynamically manipulate the signature file that
gets loaded into the new message body.
Would this be accomplished via an add-in or otherwise?
Re: How should I hook the New email process in Outlook 2007? - 10-10-2008 , 08:59 AM
Since you posted in a VSTO group you would use a VSTO COM addin
Of course you can use any other type of addin (managed or unmanaged code),
or even Outlook VBA code if you don't plan to deploy the code.
You would get your hook into the item in the Inspectors.NewInspector() event
(an Inspector is the window that opens when you open any Outlook item). The
item in the Inspector is Inspector.CurrentItem, but don't try to do much
with it until the first Inspector.Activate() event, especially in Outlook
2007 where that reference is a weak object reference good for not much more
than testing Inspector.CurrentItem.Class or .MessageClass until the first
[MVP - Outlook]
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
"forest demon" <mete.hanap (AT) gmail (DOT) com> wrote
Re: How should I hook the New email process in Outlook 2007? - 10-10-2008 , 08:04 PM
On Oct 10, 6:59*am, "Ken Slovak - [MVP - Outlook]"
<kenslo... (AT) mvps (DOT) org> wrote:
|Thread Tools||Search this Thread|