Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 441
  • Last Modified:

create outlook add in visual studio 2008 in vb

i have visual studio 2008, and have tried to create my very first outlook addin. However, I have absolutely no idea how to fire my code when an email is being sent.

I know what to do if i was creating a macro for outlook in vba, but I want it as an addin. Does anyone know the code for the event that is fired when an email is being sent? please can it be a vb example too.

thanks
0
Rakz0r
Asked:
Rakz0r
1 Solution
 
CRJ2000Commented:
The event you're looking for is ItemSend. It's an event of the Outlook application object. If you are looking to only execute your code on mail items, check he item class to assure that you only look at Outlook.OlObject.olMail.
0
 
CodeCruiserCommented:
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now