TemplatePrinter - Scoped
-
- UpdatedFeb 1, 2024
- 1 minute read
- Washington DC
- API reference
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 |
Example
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 |