Getting the 'TARGET mail addresses' JUST BEFORE sending?

  • Thread starter Thread starter À±Çüµ¿
  • Start date Start date
À

À±Çüµ¿

I want to find out the mail addresses of the receipants
just before sending the mail...

I think I can find that out if i can get 'BeforeCheckNames' event from Addin
component.
Is this right? And if it is, how can I get 'BeforeCheckNames' event from
Addin component?
If it's not, is there any other way?
 
You would have to declare an Inspectors collection using WithEvents,
and a MailItem also using WithEvents. When NewInspector fired you
would instantiate your MailItem as Inspector.CurrentItem. That would
let you handle BeforeCheckNames. You could also handle the Send event
of the item.

If the user opens more than 1 item at a time so there are multiple
open Inspectors you would need to use an Inspector wrapper collection
made up of wrapper classes to be able to handle each open item
discretely.

See the ItemsCB VB6 COM addin sample on the Resources page at
www.microeye.com for an example of an Explorer wrapper that can be
modified to work as an Inspector wrapper. You can also Google for
sample Inspector wrappers I've posted in the newsgroups in the past.
 
Back
Top