Solved

create outlook add in visual studio 2008 in vb

Posted on 2010-11-16
2
436 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
ID: 34150506
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
ID: 34150564
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What does UTC stand for?  “Coordinated Universal Time” – Think of this as the true time on Planet Earth that never changes with the exception of minor leap seconds here and there to account for the changes in the planet's rotation.   What does th…
Many people use more than one email account and so it becomes difficult for them to manage them when they use separate accounts,  so, in this article, I have shared an easy way to add Other Mail Accounts in your Google Inbox. It helps to combine all…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…

776 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