spiceworks email template
Just evaluating my current HTML template, was wondering if anyone wanted to share what they use or if they just use the standard one.
here is what I use/currently editing. it is taken/based of Helpdesk email template - Script Center - Spiceworks Community Email Notification Template - Script Center - Spiceworks Community
Code:
<body style="margin:0px; padding:0px; border: 0 none; font-size: 11px; font-family: Verdana, sans-serif; background-color: #efefef">
<table style="width: 700px; margin: 50px auto 50px auto; border: 1px #fff solid; background: #fff font-size: 12px; font-family: Verdana, sans-serif;" align="center">
<tbody>
<tr>
<td colspan="2" style="padding: 9px; color: #fff background: #666"><h1>Douay Martyrs IT Helpdesk</h1></td>
</tr>
<tr style="padding: 10px;">
<td style="width: 400px; padding: 18px;"><p>Hello {{recipient.full_name_or_email}},</p>
<!-- ************************************************************************** -->
{% case event %}
<!-- ************************************************************************** -->
{% when 'ticket-opened' %}
{% case recipient.role %}
{% when 'end_user' %}
<p>Your request has been received by the Douay Martyrs IT Helpdesk system. Someone will contact you shortly.</p>
{% when 'admin' %}
<p>A new request has been added to our helpdesk system.</p>
{% endcase %}
<!-- ************************************************************************** -->
{% when 'ticket-assigned' %}
{% case recipient.role %}
{% when 'end_user' %}
<p>On {{ticket.created_at | date_sw}} your request was received by our helpdesk system. Your request has been assigned to <strong>{{ticket.assignee.full_name_or_email}}</strong>.</p>
{% if events contains 'ticket-comment' %}
<br>Comment: <q style="font-style: italic; font-weight: bold; quotes: '„' '”';">
{{ticket.last_comment.body | escape | simple_format | replace:'<br /><br />','<br />'}}</q>
{% endif %}
{% when 'admin' %}
<p>You have been assigned or you accepted request #{{ticket.id}} created at {{ticket.created_at | date_sw}}.</p>
{% endcase %}
<!-- ************************************************************************** -->
{% when 'ticket-comment' %}
<p>On {{ticket.last_comment.created_at | date_sw }} {{ticket.last_comment.creator.full_name_or_email}} wrote:</p>
<q style="font-style: italic; font-weight: bold; quotes: '„' '”';">
{{ticket.last_comment.body | escape | simple_format | replace:'<br /><br />','<br />'}}</q>
<!-- ************************************************************************** -->
{% when 'ticket-closed' %}
{% case recipient.role %}
{% when 'end_user' %}
<p>On {{ticket.closed_at | date_sw}} your request was closed which means your case was solved. Do not reply to this email unless it has not been closed to your satisfaction.</p>
{% if events contains 'ticket-comment' %}
<br>Comment: <q style="font-style: italic; font-weight: bold; quotes: '„' '”';">
{{ticket.last_comment | escape | simple_format | replace:'<br /><br />','<br />'}}</q>
{% endif %}
{% when 'admin' %}
<p>Request #{{ticket.id}} was closed on {{ticket.closed_at | date_sw}}. Below you'll find the full request history.</p>
{% endcase %}
<!-- ************************************************************************** -->
{% when 'ticket-reopened' %}
{% case recipient.role %}
{% when 'end_user' %}
<p>Your Request has been reopened.</p>
{% when 'admin' %}
<p>Request #{{ticket.id}} has been reopened. Below is the full request history.</p>
{% endcase %}
<!-- ************************************************************************** -->
{% endcase %}
<!-- ************************************************************************** -->
<br />
<div style="padding: 2px; border: 1px #ccc solid; background: #eee">
<div style="margin: 9px;">
<h4>Request</h4>
<p>Summary: {{ticket.summary | escape}}</p>
<p>Content:</p>
{{ticket.body | escape | simple_format | replace:'<br /><br />','<br />'}}
</div>
</div>
<!-- ************************************************************************** -->
{% case event %}
<!-- ************************************************************************** -->
{% when 'ticket-opened' %}
<!-- If you have specific items that you want to display in certain circumstances, -->
<!-- prior to the ticket summary. I wanted a summary on each email that went out -->
<!-- ************************************************************************** -->
{% when 'ticket-assigned' %}
<!-- ************************************************************************** -->
{% when 'ticket-comment' %}
<!-- ************************************************************************** -->
{% when 'ticket-closed' %}
<!-- ************************************************************************** -->
{% when 'ticket-reopened' %}
<!-- ************************************************************************** -->
{% endcase %}
<!-- ************************************************************************** -->
<br/>
{% if ticket.previous_comments != empty %}
<div style="padding: 2px; border: 1px #ccc solid; background: #eee">
<h4>Request History</h4>
<hr style="height: 1px; color: #ccc" />
{% for comment in ticket.previous_comments %}
<p>On {{comment.created_at | date_sw }} {{comment.creator.full_name_or_email}} wrote:<br />
<q style="font-size: smaller; font-style: italic; font-weight: bold; quotes: '„' '”';">
{{comment.body | escape | simple_format | replace:'<br /><br />','<br />'}}
</q></p>
<hr style="height: 1px; color: #ccc" />
{% endfor %}
</div>
{% endif %}
<br />
<p>With regards,<br />
IT Helpdesk </p>
</td>
<td style="width: 240px; vertical-align: top;"><div style="padding: 9px; border: 1px #ccc solid; font-size: 10px;">REQUEST ID: <strong>#{{ticket.id}}</strong>
<hr style="height: 1px; color: #ccc" />
Date: <strong>{{ticket.created_at | date_sw}}</strong><br />
Creator: <strong>{{ticket.creator.full_name_or_email}}</strong><br />
Summary: <strong>{{ticket.summary}}</strong><br />
Priority: <strong>{{ticket.priority}}</strong><br />
Ticket URL: <strong><a style="color:#FF6600 text-decoration: none;" href="
{% if recipient.role == 'admin' %}
{{ticket.url}}
{% else %}
{{ticket.portal_url}}
{% endif %}">Click Here</a></strong><br/>
Assignee: <strong>{{ticket.assignee.full_name_or_email}}</strong>
<hr style="height: 1px; color: #ccc margin: 0;" />
<p style="text-align: justify;">If you have any additional information regarding this case simply reply to this email.</p>
</div>
</td>
</tr>
<tr>
<td colspan="2" style="background: #ddd padding: 9px; margin-top: 18px; text-align: center;">© The Douay Martyrs School 2011</td>
</tr>
</tbody>
</table>
</body>
</html>