This server class provides methods that withdraw information from the mail script and print it to the message.
This method returns the string(s) from the message body that was/were produced by the print() method.
Return:
Type | Description |
---|---|
String | The message string. |
Example:
(function runNotificationScript( /* SimpleRecord */ current, /* SimpleTemplatePrinter */ template, /* SimpleEmailOutbound */ email, /* SimpleRecord */ event ) { template.getPrint(); })(current, template, email, event); |
This message returns the number of spaces in the message body that were produced by the space(spaces) method.
Return:
Type | Description |
---|---|
Integer | The number of spaces in the message body. |
Example:
(function runNotificationScript( /* SimpleRecord */ current, /* SimpleTemplatePrinter */ template, /* SimpleEmailOutbound */ email, /* SimpleRecord */ event ) { template.getSpace(); })(current, template, email, event); |
This method allows inserting the text string into the message body.
Parameter(s):
Name | Type | Mandatory | Default Value |
---|---|---|---|
string | String | Y | N |
Return:
Type | Description |
---|---|
Void | This method does not return a value. |
Example:
(function runNotificationScript( /* SimpleRecord */ current, /* SimpleTemplatePrinter */ template, /* SimpleEmailOutbound */ email, /* SimpleRecord */ event ) { template.print('SimpleOne'); })(current, template, email, event); |
Use this method to insert a sequence of spaces (one after another) in the message body.
Parameter(s):
Name | Type | Mandatory | Default Value |
---|---|---|---|
spaces | Integer | Y | N |
Return:
Type | Description |
---|---|
Void | This method does not return a value. |
Example:
(function runNotificationScript( /* SimpleRecord */ current, /* SimpleTemplatePrinter */ template, /* SimpleEmailOutbound */ email, /* SimpleRecord */ event ) { template.space(3); })(current, template, email, event); |