Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

TemplatePrinter- Scoped

The TemplatePrinter API provides methods to handle printing from a mail script to the email message.

There is no constructor for this API. The methods are called in mail scripts using the template global variable.

Parent Topic:Server API reference

TemplatePrinter - print(String string)

Prints the string to the email body.

NameTypeDescription
stringStringString to print.
TypeDescription
void 
template.print("Incident number - " + current.number + "\n");

TemplatePrinter - space(Number spaces)

Adds non-breaking spaces to the email body.

NameTypeDescription
spacesNumberNumber of non-breaking spaces to output to the email body.
TypeDescription
void 
template.space(4);