I am [attempting to] learn how to write a script in Outlook that when a certain category is set on an email:
- Append the Subject with " PROJ=5"
- Append the Body with about 10 lines of text
- Send email.
My goal is to mark an email with a category and forward the email to our ticketing system.
I'm not really having any luck with the samples I have found.
Samples (URL) I have tried (Copied code and updated relevant fields):
MailItem.Subject Property
- Returns a String indicating Outlook item. Read/write.Example
Example
Example
To use Rule Wizard, your macro has to have the expected parameter:
Example
Helpful article in MSDN Outlook 2010 VBA
Complete Code Test on Outlook 2010 VBA:
Please make sure your References are set to run action script (Tools > References)