Text Templates

<< Click to Display Table of Contents >>

Navigation:  Mail Processing > Rules >

Text Templates

Overview

Here you can create text templates that can be used in rule actions. For example, you could create an auto-reply rule that sends an Out of Office email which contains content that is especially aligned for the person receiving the email.

By default the Exchange Server Toolbox adds templates for different attachment types.

With the integration of a Template engine in Exchange Server Toolbox, it is now possible to use variables in diverse actions. Almost everywhere where an action needs a text parameter you can use the "Add" button to add a variable which then will be evaluated at runtime. To delete a template select it and press "Delete".

 

Variable

 

Meaning

[$SecurityExecutableFilesRegex$]

 

Executable file attachments.

[$SecurityOfficeFilesRegex$]

 

Office file attachments.

[$SecurityPdfFilesRegex$]

 

PDF file attachments.

[$Date$]

 

Current date (format is system specific).

[$DateAndTime$]

 

Current date and time (format is system specific).

[$Time$]

 

Current clock time (format is system specific).

[$MessageID$]

 

The message ID of the email.

[$ReceivedTime$]

 

The time a message was received.

[$Header$]

 

The header of the email.

[$From$]

 

The sender of the email.

[$To$]

 

The recipients of the email.

[$CC$]

 

The carbon copy recipients of the email.

[$HtmlBody$]

 

The HTML source code of the message body.

[$HtmlBodyUtf8$]

 

The HTML source code of the message body if encoded in UTF 8.

[$PlainText$]

 

The plain text of the message body.

[$HtmlOrPlainTextBody$]

 

The HTML source code or the plain text of the message body.

[$HtmlOrPlainTextBodyUtf8$]

 

The HTML source code or the plain text of the message body if encoded in UTF 8.

[$Direction$]

 

The email direction

[$SpamScore$]

 

The spam score of the email.

[$SpamReport$]

 

Outputs the SpamAssassin's spam report.

[$VirusName$]

 

If the email contains a virus, the value of the variable is the virus name.

[$HasVirus$]

 

Indicates whether the email has a virus - [true,false].

[$DeliveryAborted$]

 

Indicates whether the delivery of the email was aborted - [true,false].

[$Refused$]

 

Indicates whether the email was refused by the server - [true,false].

[$RemoteIP$]

 

The IP of the server your Exchange Server got the email from.

[$SCLValue$]

 

Spam Confidence Level: for more information click here.

[$Subject$]

 

The subject of the email.

[$Size$]

 

The size of the email (in kB).

[$SMTPRecipients$]

 

List of the SMTP recipients of the email.

[$SenderSMTP$]

 

The SMTP sender of the email.