C# Outlook 2003 COM Add-in

T

Tarran

Hi All,

I'm trying to figure out how to make a C# COM Add-in that runs whenever all
emails are sent - collects all receipent address then cross checks email
address with our customer database then futher processing applied.

I've already made an Outlook COM Add-in using C# which runs when the added
button is click however I am trying take it futher so runs after an email is
sent.

I'm thinking I can do this by adding a rule that runs a "Custom Action"
after all email is sent; however I don't know how to have my COM Add-in show
in the "Custom Action" list in outlook 2003.

Does anyone know how I can accomplish this either with custom action or
some-other way... I'm open to suggestions. Has anyone seen any tutorials or
examples.

All feedback is appreciated. Many Thanks
Tarran
 
S

Sue Mosher [MVP-Outlook]

The event you want to use is Application.ItemSend.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
T

Tarran

Hi Sue,

Thanks for your help - Thats exactly what I was after.

I added to a Event Handler to ItemSend and all working as planned.

However; How can I collect the To address from the email that was sent?

Many Thanks,
Tarran
 
S

Sue Mosher [MVP-Outlook]

The Recipients collection on each MailItem contains all the recipients. Check Recipient.Type to determine whether it was a To, Cc or Bcc.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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