Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problems between outlook and vbscript

Status
Not open for further replies.

fernen

Programmer
Jun 20, 2001
2
ES
Hi, I'm doing a program and I want that each time that I receive an email with a specific subject ( using outlook) it calls (outlook) directly to a program that I have done in Visual Basic 6, but I don't know if it's possible to do that or not.

I would like also, that outlook would e-mail directly back the person who e-mailed me before.

Thanks.
 
In Outlook, open up the VB editor and look at the code window for "ThisOutlookSession". There is an event called Application_NewMail that fires whenever a new email comes in. Using the Outlook object model, you can find the email and it's subject, then depending upon what it is, you can shell out to you VB app and send a new email.

Hope that's what you're looking for. If you need more help on the terribly complex Outlook object model, let me know and I'll do my best to help you

joe
 
Hi joe, I have the outlook 98 in spanish version and I know how to " separate the e-mail with the specific subject" but I don't know how to do for e-mail it back, because there is an option who is " e-mail back" but when I double click I'm supposed to chose a " template answer " and is empty. I don't know if I can create an answer by my self

Also, I don't know how to shell out my vbasic programm and where I have to do it.

Thanks a lot for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top