Following on from Paul Ostwick’s excellent article, HTML Emails in SDE, I decided to put his guidance into practice and come up with my own email templates. I am really pleased with the result and as such thought I would share just in case it suits your needs.
To begin with I created the Header and Footer Notification Business Rule Templates exactly as Paul describes and then made a couple of modifications to the styles etc.
_HTML_HEAD Template
<HTML>
<HEAD>
<TITLE>Service Desk Notification</TITLE>
<STYLE TYPE="text/css">
* { margin: 0px; padding: 0px; }
body { font-size: 80%; font-family: 'Lucinda Grande', Verdana, Sans-Serif; margin: 10px; }
h1 { font-size: 150%; font-weight: bold; color: white; }
h2 { font-size: 110%; font-weight: bold; margin: 0 0 10px 20px; }
p { font-size: 100%; line-height: 150%; margin: 20px; }
.header { padding: 10px; border: 1px solid #000000; background-color: #336699; height: 40px; color: #EEEEEE; width: 100%; }
.content { margin-left: 25px; }
th { text-align: left; font-weight: bold; padding-right: 10px; }
.footer { padding: 10px; border: 1px solid #000000; background-color: #336699; height: 20px; color: #EEEEEE; width: 100%; }
</STYLE>
</HEAD>
<BODY>
<TABLE>
<TR><TD class="header">
<H1>Service Desk Notification</H1>
</TD></TR>
<TR><TD>
_HTML_FOOT Template
<P>The progress of your ticket can be obtained via <A HREF="http://{APPSERVER}/HelpDesk">Self-Service</A> or the Service Desk on +44 (0) XXX-XXXX.</P>
</TD></TR>
<TR><TD class="footer">
{EVENTMODULE} {EVENTMETHOD} / {RULENAME}
</TD></TR>
</TABLE>
</BODY>
</HTML>
Incident Logged Template
I then created the Incident Logged template with the Header and Footer Templates added:
{TEMPL,_HTML_HEAD}
<P>Dear {TR,First Name},</P>
<P>
An Incident (# {TR,Incident #}) has been logged on your behalf. The details of this incident are shown below:
</P>
<H2>Incident Details</H2>
<TABLE class="content">
<TR>
<TH>Service:</TH>
<TD>{TR,Service Description}</TD>
</TR>
<TR>
<TH>Category:</TH>
<TD>{TR,Subject Description}</TD>
</TR>
<TR>
<TH>CI Assembly:</TH>
<TD>{TR,CI Assembly ID}</TD>
</TR>
<TR>
<TH>Configuration Item:</TH>
<TD>{TR,Asset/Tag #} - {TR,CI Description}</TD>
</TR>
<TR>
<TH>Description:</TH>
<TD>{TR,Incident Description}</TD>
</TR>
<TR>
<TH>Status:</TH>
<TD>{TR,Status ID:} </TD>
</TR>
</TABLE>
{TEMPL,_HTML_FOOT}
Result
The result, in my humble opinion, is really quite pleasant:
Summary
So, if you haven’t had a play with HTML emails yet – have a go. I converted all my emails in around 1/2 hour once I got the header and footer template sorted. As always, comments (positive or negative) are always welcome.