Search OutlookPower's 9,596 Outlook and all-things-email article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
OUTLOOK Q&A
Writing a rule and a quick step into server programming
By David Gewirtz

Mark Brunner's doing some funky things with servers and Outlook. Here's his question:

I like your article on using the custom template for auto-replying to Outlook messages (and forwarding and what-not, but that's not my issue).
I am looking for a rule that will automatically respond to a predetermined email address (not the original sender's) every time an email arrives with specific text in the body. The custom template response will only send once to a single address, like an Out Of Office auto-reply. Not what I want.
The purpose of this is to send an alert to a Web page that contains a JavaScript, and change a security status indicator on yet another Web page as threat levels are changed and announced by various vendors and organizations.
Can you tell me how to modify your rule, find a working rule, or how to go about programming a rule of this nature? (I'm not a programmer)
Thanks for the good read.

I'm not exactly sure which article Mark's talking about, but some of our more comprehensive rule articles ran back in June. You can read them at http://www.outlookpower.com/tocs/issue200506.html.

In any case, I'm also not absolutely sure this is a problem for Outlook, and not for your server software. But let's take a shot at parsing your request. The statement below is the key problem statement:

...automatically respond to a predetermined email address (not the original sender's) every time an email arrives with specific text in the body.

This turns out to be a classic rule construct. The second part, "every time an email arrives with specific text in the body", is the condition. You'd specify this with a "with specific words in the body" condition, as shown in Figure A.

FIGURE A


Trigger the rule each time the specific words show up in the body. Roll over picture for a larger image.

The first part of the problem statement, "automatically respond to a predetermined email address", is the action for the rule. You'd probably want to use "forward it to people or distribution list" and put in the predetermined email address, as shown in Figure B.

FIGURE B


Once the rule is triggered, an email goes out to the address specified. Roll over picture for a larger image.

Of course, you'll probably want to use a different email address!

What I didn't fully understand was whether Mark expected this rule to run only once, or each time the trigger phrase arrived in a message. As shown above, the rule will run each time the trigger phrase is seen.

Honestly, though, I'm not sure you want to use Outlook to manage a server's contents. Many server programming environments, whether PHP, Perl, Python, or even the Frontier Kernel support an email client interface. You could have the server's email client retrieve the messages and process them in a precise programmatic fashion. For example, PHP has a POP3 client library (at http://pecl.php.net/package/POP3) that allows PHP to act as an email client.


1  ·  2  ·  3  ·  Next »
Other articles you might like
Home > Using Outlook > Rules (13 articles)
   Breaking all the rules on the 32K rules limit
   Two crude Outlook rule hacks
   How to make Outlook launch an app at a specific time?
Home > Extras > Q & A (32 articles)
   What to do when Outlook complains about a program you know you uninstalled
   Breaking all the rules on the 32K rules limit
   Printing notes with contacts in Outlook 2007
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent OutlookPower Articles
The strange case of Outlook losing notes and requiring passwords
Why I'm choosing to stick with Outlook 2007
Three ways to avoid email distraction and take back control of your time
Twenty ways to use email to commit career suicide
The two most motivational words in the English language
Diagnosing corrupted email headers
Email offenders
OutlookPower News Center
New Filing Assistant from Allometa
Dropbox bridges gaps in Microsoft's mobile sync
SmartBear Software Releases AQtime 7.0 Pro
6 Super Wi-Fi Tools for Windows
Microsoft Revives Windows 7 Family Pack Discount
Microsoft releases FixIt for critical flaw in 100 apps
M-Files Cloud Vault Easy, Hosted Document Management
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Smartphone smarts for a mobile world
David Gewirtz Online: CNN commentary and analysis
DominoPower: It's time for Lotus to double-down on Linux and open source
-- Advertisement --

EASY DEDICATED AND VIRTUAL DEDICATED SERVERS FOR AS LOW AS $67.99 PER MONTH
Customize and configure your own dedicated server. Simply choose one of our popular plans or select your own Linux or Windows server and plan options.

NO LONG WAITS. Server provisioned within hours.

Tap here now and be up and running with your own server tonight.

-- Advertisement --

Printing emails and attachments has never been simpler
When it comes to printing emails or attachments, you can be confident that our Auto-Print add-in can do what Outlook lacks - print the emails and/or attachments as soon as they arrive.

Discover this professional tool today.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
The Power Magazine for Microsoft Outlook and Exchange Users at OutlookPower.com
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Outlook is a trademark of Microsoft Corporation.
Editor's Login