View Single Post
  #8  
Old April 29th 09, 02:15 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Email Forwarding

Please do not hijack other people's threads. What you are asking has nothing
to do with this thread.

If you want code to run obviously your computer must be running.

You can use an ItemAdd() handler or a NewMailEx() handler in the Outlook VBA
project and get the properties you want from the incoming item and use
Application.CreateItem(olMail) to create a new email. You can then populate
that item, say it's oMail as desired: oMail.Subject = "whatever",
"), oMail.Body = "status=In Progress",
etc. You can then call Send() on the item to send it out.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Tomas" wrote in message
...
Hello Ken,
may be you could help me with similar Issue i think i can not handle
easily.
I am not sure which way to go on incoming email and specific text in
subject.

i see i have two options. On incoming email with text in Subject either
run
script or make auto reply directly in outlook. What i am looking for is to
take a piece subject of email i got and repost it.

The incoming email subject looks like "Service call 10745707 has been
assigned to you."

What i would like to do is to reply to this emial like:
_send to:
_subject: update 10745707
_Body: status=In Progress



I also though i could run a script on this like start application excel,
data to columns and then the code for send email. Anyway this looks to me
kinda to complicated and also when running this script my pc must be
always
on.

Could you please help me with this issue?
Thank you in advance
Best regards
Tomas


Ads