Solved

create outlook add in visual studio 2008 in vb

Posted on 2010-11-16
2
434 Views
Last Modified: 2012-05-10
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
Comment
Question by:Rakz0r
2 Comments
 
LVL 6

Accepted Solution

by:
CRJ2000 earned 500 total points
Comment Utility
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
 
LVL 83

Expert Comment

by:CodeCruiser
Comment Utility
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Use email signature images to promote corporate certifications and industry awards.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now