how to capture information in an email to be used in an application that will be launched for an incoming message

hi experts,

can anyone point me out on where to start with this project.  can we do a background update on an sql table based on email?  how can i capture the information written on the email.  we're planning to use the alert option in the outlook and set it so that an application (which will perform the actual update) will run if an incoming email with a specific word on it arrives.

any ideas/thought/help would be greatly appreciated.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David LeeCommented:
Greetings, wala_lang.

You can do this with an Outlook macro.  Macros are written in VBScript.  To write a macro click Tools->Macro->Visual Basic Editor, then write the code.  Since you want to run the macro from a rule you'll need to format the macro a certain way.  Specifically, you have to pass it a single parameter representing the newly arrived mail item.  Generally like this:

'You can name the macro whatever you want, but the parameter needs to be as shown here.
Sub MyMacro(Item as Outlook.MailItem)
    'Code goes here
End Sub

Connect the script to a rule by selecting the rule action "run a script" and then selecting the macro name from the "Select Script" dialog-box.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.