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.
| Name | Type | Description |
|---|---|---|
| string | String | The string to print |
| Type | Description |
|---|---|
| void |
template.print("Incident number - " + current.number + "\n");
Scoped TemplatePrinter - space(Number spaces)
Adds non-breaking spaces to the email body.
| Name | Type | Description |
|---|---|---|
| spaces | Number | The number of non-breaking spaces to output to the email body. |
| Type | Description |
|---|---|
| void |
template.space(4);