Email Templates
New to Sentinel EMS?
|
What are Email Templates?
An email template is a file that provides a predefined format and default content for the emails that are used to notify Sentinel EMS users. The following email templates are available in Sentinel EMS:
Template | Display Name | Description | Migrated TPL Files |
---|---|---|---|
LicenseCertificateReprint.emst | Reprint License Certificate | Email template that includes details of a license certificates for reprinting multiple activations. | N.A. |
Resetpasswordemail.emst | Password Reset | Email template for notifying a user to reset the password. | ResetPassword.tpl |
Productupgradeemail.emst | Product Upgrade | Email template for notifying users about a product upgrade. Sent after a product upgrade. | ProductUpgradeEmail.tpl |
Licensecertificate.emst | License Certificate | Email template that includes details of a license certificate. Used for notifying a contact that a license was generated. |
>LicenseCertificateEmail.tpl >LicenseCertificate12.tpl |
Fitlicensecertificate.emst | Sentinel Fit License Certificate | Email template that includes details of a license certificate. Used for notifying a contact that a license was generated using Sentinel Fit enforcement. |
>LicenseCertificateEmail.tpl >FitLicenseCertificate12.tpl |
Fileloademail.emst | File Upload | Email template for notifying a user that a file was uploaded for an entity, along with information about the data imported. |
>FileLoadEmail.tpl >FileLoadDetails.tpl |
Entitlementnotactivatedemail.emst | Entitlements - Never Activated | Email template for notifying a user about entitlements that have never been activated. | EntitlementNotActivatedEmail.tpl |
Entitlementexpiringemail.emst | Entitlements - Expiring Soon | Email template for notifying a user about entitlements that are about to expire. Specifies the number of days remaining. | EntitlementExpiringEmail.tpl |
Entitlementexpiredemail.emst | Entitlements - Expired | Email template for notifying a user about entitlements that have recently expired. Lists the relevant entitlements. | EntitlementExpiredEmail.tpl |
Entitlementdefaultemail.emst | New Entitlement - Notify User | Email template for notifying a user that an entitlement was created. | EntitlementDefaultEmail.tpl |
Entitlementcertificate.emst | New Entitlement - Notify Contact | Email template that includes details of an entitlement certificate. Used for notifying a contact that an entitlement was generated. |
>EntitlementCertificateEmail_LVH.tpl >EntitlementCertificate_LVH12.tpl >CertificateCldConnected_unNamed.tpl >CertificateCld_unNamed.tpl >EntitlementCertificate12.tpl > EntitlementCertificateEmail.tpl |
Devicelicensecertificate.emst | License Certificate for Device | Email template that includes details of a license certificate for use on a specific device. Used for notifying a contact that a license was generated. |
>LicenseCertificateEmail.tpl >LicenseCertificateDevice12.tpl |
Contactcertificate.emst | Contact Creation Confirmation | Email template for notifying a user that a contact was created successfully. |
>ContactCertificateEmail.tpl >ContactCertificate.tpl |
NOTE In the table above the table, the Migrated TPL Files column lists the .tpl files of Sentinel EMS 5.0 that were migrated to the .emst files in Sentinel EMS 5.1.
Actions for Email Templates
The following table lists the actions available for email templates:
Action | Description | ||
---|---|---|---|
|
Creates a new email template. To create an email template. 1.Click the New action to open the Add Email Template page. 2.Select the Template Language from the list of languages specified. 3.In the Configure Email Template Language Attributes section, use the available tools to modify the template. See Editing Email Templates for details of these tools. 4.Click Save.
|
||
|
Updates existing email template. See Editing Email Templates to understand how to edit an email template. Also see Adding Dynamic Content to Email Templates to understand how to add |
||
|
Downloads the email template. |
Editing Email Templates
The Edit action opens an email template in the email template editor. You can use the tools available in the editor to modify and format the email template as required. The following table describes the email template editor tools:
Tools | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Erases the last change done to revert the email template to its previous state. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Restores the actions that have been previously undone using the Undo action. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Various formatting styles defined by your theme. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Bolds the selected text. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Italicizes the selected text. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Underlines the selected text. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Specifies or changes the font color. Click the arrow next to this tool and select a font color. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Specifies or changes the background color. Click the arrow next to this tool and select a background color. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Aligns the text to the left side of the page or the containing element. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Aligns the text to the center of the page or the containing element. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Aligns the text to the right side of the page or the containing element. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Alignment can only be applied to text and will align both sides of the text. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Creates bullet points or bullet lists. Click the arrow next to this tool and specify the type of bullet. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Creates numbered points or numbered lists. Click the arrow next to this tool and select the numbering style. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Decreases the indentation space of the text or cursor from the margin on the left side of the page. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Increases the indentation space of the text or cursor from the margin on the left side of the page. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Inserts or modifies a hyperlink. To insert a hyperlink: 1.Click Insert / Edit Link to open the Insert / Edit Link dialog box. 2.Enter the URL, Text to Display, and Title. 3.Select Current Window or New Window to specify the window to open the target. 4.Click Save. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Inserts or modifies an image To insert an image: 1.Click Insert / Edit Image to open the Insert / Edit Image dialog box. 2.Enter the Source, Image Description, Width, and Height of the image. 3.Click Save. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Inserts a table. Also contains the tools that help to work with cells, rows, and columns in a table. The options in the table menu can also be accessed by right-clicking a selected table. Details of the tools to work with a table are given below:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Displays the HTML source code for the email template in the Source Code window. You can use this window to modify or format the email template using HTML elements. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Uploads an existing email template. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Saves the changes made to the uploaded email template. |
Adding Dynamic Content to Email Templates
The Sentinel EMS email templates are a combination of both static and dynamic data. The dynamic data is the information that changes and can be customized as required. You can use the JSON response of the Sentinel EMS REST APIs and simple knowledge of FreeMarker syntax to build dynamic content in the email templates. Examples of dynamic data are place holders, which are similar to variables that are part of your email template. You can also use conditional statements and list constructs to build your dynamic text.
Adding a Placeholder
Placeholders are variables that are part of your email templates. A placeholder is enclosed in curly brackets and preceded by the $ symbol. For example:
${name}
Within the curly brackets, you can enclose the placeholder name in parentheses followed by an ! symbol. This ensures that a null pointer exception is not thrown if the value for the placeholder variable is not found.
${(name)!}
The JSON response of the Sentinel EMS REST APIs is stored in the data object. With the knowledge of Sentinel EMS Rest API JSON response structures, the data object can be referenced to create place holders in the email template. For example:
${(data.entitlement.eid)!}
In the example above the placeholder will display the value of the entitlement ID in an entitlement.
All Sentinel EMS configurationrelated information that is not available as JSON response of the Sentinel EMS REST APIs in the data object, is available in the config object. The config object can be referenced to create place holders in the email template. For example:
${(config.supportEmailId)!}
In the example above the placeholder will display the technical support email from the Administration Console.
Adding Conditional Constructs
The if else conditional constructs can be used to specify conditions for Sentinel EMS. Following is the syntax, that is used to specify the if conditions:
<#if condition> ... <#else> ... </#if>
You can also use the elseif construct with the if condition. The syntax for using elseif within the if condition is:
<#if condition> ... <#elseif> ... <#elseif> ... </#if>
The elseif and the else constructs are optional.
In the following example of conditions in Sentinel EMS email templates, the if condition is used to display the text "No Expiration Date" if the entitlement end date is set as "Never Expires". The else construct displays the entitlement expiration date if the condition specified is false.
<#if (data.entitlement.expiry.neverExpires)!false> No Expiration Date <#else> ${(data.entitlement.expiry.endDate)!} </#if>
Working with Lists
You can also list a sequence in email templates. The following syntax is used for listing a sequence:
<#list Sequence as Item> Part repeated for each Item </#list>
The terms used in the syntax above are explained below:
>Sequence: Sequence or collection of the items that you want to iterate through
>Item: Name of the loop variable (not an expression)
In the following example data.entitlement.productKeys.productKey is the sequence, where the list condition is used to display all product names and versions in an entitlement.
<#list (data.entitlement.productKeys.productKey)! as productKey> ${(productKey.item.itemSuite.suite.nameVersion.name)!} ${(productKey.item.itemSuite.suite.nameVersion.version)!} </#list>