...
Click Setup tab
Click 'Ticket Email Template'
Copy the code below into the text area OR update your existing template (by default, no template will appear and the system will use the default internal template)
Click Save
Confirm by sending an email from the ticket system to your email address.
Template Example
Code Block |
---|
<html> <head> <style type="text/css"> body { background-color: #FFFFFF; margin-top: 2px; margin-left: 1px; margin-right: 1px; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none; width: 95%; font-size: 10px; font-family: Arial; } .TicketHeader { margin: 0px; list-style-type: none; } .TicketDetailHeader { font-weight: bold; text-indent:5px; padding: 3px 3px 3px 3px; background-color:#EEEEEE; } .TicketDetail { font-weight: bold; text-indent:5px; padding: 3px 3px 3px 3px; background-color:#EEEEFF; } .TicketDetailBody { margin-left:15px; } .txtbox_label { font-weight: bold; padding-right: 5px; } </style> </head> <body> <a href="www.SimplePortal.com/ticket/edit.rails?id=$TemplateHelper.SimplePortalEncodeString($Ticket.ID.ToString())">$translator.Translate("Click here to view this ticket")</a><br /> <br /> <table> #foreach ($field in $editfields) <tr><td>$translator.Translate($TemplateHelper.GetLabel("Ticket", $field))</td><td>$TemplateHelper.GetFieldValue($Ticket, $field)</td></tr> #end </table> <h1>$translator.Translate("Ticket History")</h1> #foreach ($ticketdetail in $ticketDetails) #if($ticketdetail.Text.Trim() != "") <p> $TemplateHelper.ShowTicketDetailHeader($ticketdetail) </p> <p> <div> <p>$ticketdetail.Text</p> </div> </p> #end #if ($TemplateHelper.TicketDetailHasAttachment($ticketdetail)) #if ($ticketdetail.GetTicketDetailAttachment().Deleted) $translator.Translate("Attachment ({0}) deleted.", $ticketdetail.GetTicketDetailAttachment().Name) #else $ticketdetail.GetTicketDetailAttachment().Name #end #end #end </body> </html> |
...