View Single Post
  #2  
Old January 31st 07, 04:11 PM posted to microsoft.public.vb.general.discussion,microsoft.public.outlook.program_vba,comp.lang.basic.visual.misc
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Best way to start a program when specific email received?

The best and most robust way is to use an Outlook COM addin, which can
handle the ItemAdd event in the Items collection of the Inbox.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Bill" wrote in message
news
I have posted this to both the outlook and vb groups because I am not
sure of the best way to approach this.

I have written a VB program that processes an email based on the
customer it is received from, the type of order, etc.

I would like the program to start up whenever an email is received by
the address I have Outlook set to.

Am I better off to wake up my program periodically and check for the
emails?

Or is there a way to just have Outlook call my program when an email
is received?

I know how to save the email to a file or database when it is received
but I am not aware of how to kick off a program from Outlook when an
email is received.

I would appreciate all thoughts and pointers to articles or
discussions. This seems to fall in between the two programs as I am
looking for the best practice.

Thank you in advance for your help.



Ads