This recipe discusses the steps required to create a rich text formatted e-mail template.
Getting ready
This procedure requires you to have a copy on Microsoft Word 2007 or above installed. You must be in the SCSM Administrator role and have the SCSM console open.
We will use an incident notification as an example. We will create a template for sending the affected user the following incident details:
The ID of the Incident
Affected users name
Title
Description
Status
Priority
How to do it...
The following steps will guide you through the process of how to create an e-mail notification template:
Create a new Word document and design the format of your notification e-mail with the details of the properties to be sent, using new lines to separate each property:
Save the file as a Web Page, Filtered (*.htm, *.html) file:
Navigate to the file location. Open the file with Notepad and copy the text.
Navigate to SCSM Console | Administration | Notifications | Templates and select Create E-Mail Template from the Tasks workspace:
Configure the following for the general settings:
Notification template name: Packt End User Notification
Description: HTML formatted message for new Incidents
Target class: Click on Browse... and select Incident
Management pack: Select a custom management pack (for example, PON - Incident - Notification Templates)
Click on Next:
Tick the Send as HTML checkbox and type a descriptive message in the Message subject field.
Paste the details from Step 3 into the Message body field:
Find the various places where you want to insert the properties from the Getting ready section of this recipe. Click on Insert... to select the property and click on Add:
Repeat the previous step for all properties in the scope:
Click on Next. Verify the details and click on Create.
The template is created for use and can be selected for incident class notifications, for example, sending an e-mail to the affected user:
How it works...
By default, the e-mail notification templates you create in the SCSM console do not get formatted as HTML. This applies even if you select the Send as HTML option.
You have two choices if you want the message to be in true HTML format:
Manually type the HTML tags to format the message
Use an HTML-capable editor to save the format as described in the recipe steps
See also
The Setting up SLA notifications for warning and breaches recipe in Chapter 3, Configuring Service Level Agreements (SLAs), discusses SLA notification and provides examples of using the notification templates you create