Outlook autoreply rule
Posted on 2012-03-20
Scripting is definitely not my strong suite and would really appreciate some help with an issue I am facing at the moment.
Running in an Exchange 2007/Outlook 2010 environment.
My question is, is there a way to automate a reply received from a specific address/mailbox? The reply would need to include the original emails subject line and a brief your email has been received and will now be processed message.
I have had a look at setting this up using Outlook rules, with the actions being run a script or perform a custom action (reply using a specific template – does not allow the original message subject line to be included).
* I have found a script that works well, and nearly does everything that I am after, the only thing that I need changed is the subject line to use the original email subject.
Sub AutoReply(Item As Outlook.MailItem)
Dim olkReply As Outlook.MailItem
Set olkReply = Item.Reply
'Change the subject on the next line as desired'
.Subject = "Your Subject Goes Here"
'Change the body as desired'
.HTMLBody = "Your reply text goes here.<bt><br>" & olkReply.HTMLBody
Set olkReply = Nothing