Template Components

Top  Previous  Next

Template

 

All Templates have three sections:

Settings

A Setting variable controls either a delivery response setting or modifies the content of a message. The Settings section of a Template does not use, nor should it reference, a Macro variable and must only use and reference Setting variables. The Settings template is unique in that variables specified in this section are cumulative. So, if you have Settings variables specified in the Global template and have completely different variables specified in a Carrier level template, all Settings specified are respected. However, if you have the same variable specified by multiple Settings templates, the highest order template's value will always be used.

 

For example, let's say you're configuring PageGate to send email and need to relay your traffic through three SMTP servers. If all three SMTP servers are part of the same domain, you can specify the InternetDomain = variable on a global level. Let's say that two of the SMTP servers are for one domain and one SMTP server is on a completely different domain. At that point, you would use InternetDomain = primarydomain.com in the Global template, then specify InternetDomain = alternatedomain.com in the Carrier template for the alternate SMTP server. Any time PageGate handles traffic for the two primary domain SMTP servers, it will use the global InternetDomain value but when it handles traffic for the alternate SMTP server, it will use that carrier's specified InternetDomain value.

 

Subject

The Subject section of a template controls the behavior of any Subject Line processed by this template and references Macros. A Macro variable is an inserted value to control, modify and specify the output of a message. The Subject section of a Template should not use or reference any Setting variables and must only use Macro variables. Subject templates will override templates of a lower order. For example, a Recipient level subject template will completely replace the subject line for that recipient and will override any Carrier, Connector, Interface or Program level Subject template you've applied.

 

Text

The Message section of the template controls the output and format of the body of any message controlled by this template and references Macros. A Macro variable is an inserted value to control, modify and specify the output of a message. The Message section of a Template should not use or reference any Setting variables and must only use Macro variables. Text templates will override templates of a lower order. For example, a Recipient level text  template will completely replace the subject line for that recipient and will override any Carrier, Connector, Interface or Program level Subject template you've applied.