C# Outlook 2003 COM Add-in

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
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
 
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
 
Back
Top