View Single Post
  #3  
Old January 19th 06, 09:36 AM posted to microsoft.public.outlook.program_addins
Darius
external usenet poster
 
Posts: 6
Default How to work with MailItems after pressing Send-Button

In my case I'm not able to catch 'NewInspector'-Event in the Inspectors
Collection, because the action (sending a mail) will be initiate from a
diffrent tool using Simple Mapi (Function: MAPISendMail). After the tool
called the MAPISendMail-Function, a new Mailwindow will be opened. In
this case a new Outlook Inspector Window, because Outlook is set as
default (mapi) mail client. But the event 'NewInspector' will not be
fired. Trying to catch the 'NewInspector'-Event, by initiate sending a
mail direct from Outlook, works fine.

Is their another way to work with MailItems when they will be send?


Ken Slovak - [MVP - Outlook] schrieb:
Monitor each new Inspector as it's added to the Inspectors collection.
Trap the Item.Send event for the Inspector.CurrentItem. Cancel the send
and then you can copy the item, move it or alter it as you want. You
might need a timer event to start your processing of the item after the
Send event concludes, that's most important when using WordMail.

The Application level send event is too late, not too early, for what
you want.

Ads
 

Advertising - Credit Cards - Credit Counseling - Fast Loans - Pacotes TurĂ­sticos