HighTechTalks DotNet Forums  

How should I hook the New email process in Outlook 2007?

Visual Studio.net (Tools Office) microsoft.public.vsnet.vstools.office


Discuss How should I hook the New email process in Outlook 2007? in the Visual Studio.net (Tools Office) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
forest demon
 
Posts: n/a

Default How should I hook the New email process in Outlook 2007? - 10-09-2008 , 06: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?

Thanks folks...

-
fd

Reply With Quote
  #2  
Old   
Ken Slovak - [MVP - Outlook]
 
Posts: n/a

Default Re: How should I hook the New email process in Outlook 2007? - 10-10-2008 , 07: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
Inspector.Activate() fires.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"forest demon" <mete.hanap (AT) gmail (DOT) com> wrote

Quote:
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?

Thanks folks...

-
fd


Reply With Quote
  #3  
Old   
forest demon
 
Posts: n/a

Default Re: How should I hook the New email process in Outlook 2007? - 10-10-2008 , 07:04 PM



On Oct 10, 6:59*am, "Ken Slovak - [MVP - Outlook]"
<kenslo... (AT) mvps (DOT) org> wrote:
Quote:
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
Inspector.Activate() fires.

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.http://www.slovaktech.com/products.htm

"forest demon" <mete.ha... (AT) gmail (DOT) com> wrote in message

news:8215b620-b7d9-48dc-b190-e02608dd3a1e (AT) a3g2000prm (DOT) googlegroups.com...



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?

Thanks folks...

-
fd- Hide quoted text -

- Show quoted text -
thanks for pointing me the right direction. i appreciate your time...

-
fd


Reply With Quote
Reply




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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.