Turning on outlook rules remotely

R

retrac75

Im looking for a way to turn an outlook rule on by sending an e-mail
to a host computer with certain words in the subject.

eg I have a rule set up, that when I am sick all support e-mails for
my company get forwarded to my 2ic to handle in my absence. I want a
way for her to send my computer an e-mail with "Turn Fwd On" or
similar in the subject line and for my computer to then turn on the
forwarding rule.

Any help much appreciated

James
 
M

Michael Bauer [MVP - Outlook]

With rules itself that's not possible, and without Exchange you can't rely
on that Outlook handles your messages while you're absent. In principle it
could work this way:

Create a Run-a-Script rule that will be called for every message which
should be forwarded - even if you aren't absent.

The code would look like this:

Private m_Forward as Boolean

Public ForwardMessages(Mail as Outlook.MailItem)
On Error Resume Next
Dim Fwd as Outlook.MailItem

If m_Forward Then
Set Fwd=Mail.Forward
Fwd.To = "next address"
Fwd.Send
Endif
End Sub

Then create another Run-a-Script rule that parses your 'switch rule on'
messages. If a message comes in that should switch on the rule then set the
flag m_Forward = True; for switching it off again set the flag = False.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - Categorize Outlook data:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>

Am 30 May 2007 22:49:04 -0700 schrieb (e-mail address removed):
 
S

Sue Mosher [MVP-Outlook]

Actually, with Outlook 2007, you could write a "run a script" rule to turn rules on and off.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/article.aspx?id=54
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top