Create an email template
- UpdatedAug 1, 2024
- 2 minutes to read
- Xanadu
- Notifications
You can create an email template with rich HTML formatting, rather than plain text.
Before you begin
Procedure
- Navigate to All > System Notifications > Email > Templates.
- Click New.
-
Fill in the form fields (see table).
Field Description Name Enter a unique name for the template. For example, change.update.risk. Application The type of scoped application. Email layout If the message body for the template is to be formatted using a predefined email layout, select the layout. Table Select the name of the table involved. For example, Change Request [change_request]
.Subject Enter a subject line that explains the purpose of the email. Select the appropriate variables for the subject line from the fields available on the selected table. Place the cursor where you want the variable to appear, and click the field name in the Select variables column. For example: ${sys_class_name} ${number} with ${risk} risk has been assigned to you.
Message HTML Enter the content of the email template message. You can use the HTML editor toolbar to format the HTML, and you can include variables from the Select variables column. Variables map to column names available from the notification table, its parent tables, and reference tables. Use variables to include values from a record in the table such as an incident short description or comments and work notes. Notes:- When a template is applied to a notification, the contents of this field are used when you select HTML and plain text or HTML in the Content Type field in the Email Notification form.
- You cannot use HTML code to control the
appearance of the contents in the
${comments}
variable. - If you want to include a link to the record that triggered the notification, see Enable links to records.
Message Text Enter the notification message to send in plain text. Note: When a template is applied to a notification, the contents of this field are used when you select HTML and plain text or Text in the Content Type field in the Email Notification form.SMS alternate Create a different message to be delivered to an SMS device. Enter a brief message, showing the most important information only. If this message field is blank, the contents of the Message Text field are used for the SMS message. Note: The message in this field is used when the message is sent to a device configured as SMS.
Related Content
- Create an email layout
Create an email layout to specify the HTML content you want to appear in the body of one or more email templates.