Getting the 'TARGET mail addresses' JUST BEFORE sending?

À

À±Çüµ¿

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?
 
K

Ken Slovak - [MVP - Outlook]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top