TemplatePrinter - Scoped

Scoped TemplatePrinter handles printing from a mail script to the email message.

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

Scoped TemplatePrinter - print(String string)

Prints the string to the email body.

Table 1. Parameters
Name Type Description
string String The string to print
Table 2. Returns
Type Description
void

template.print("Incident number - " + current.number + "\n");

Scoped TemplatePrinter - space(Number spaces)

Adds non-breaking spaces to the email body.

Table 3. Parameters
Name Type Description
spaces Number The number of non-breaking spaces to output to the email body.
Table 4. Returns
Type Description
void

template.space(4);