Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
This server class provides contains methods that withdraw extract information from the mail script and print it to in the message.
getPrint()
This method returns the string(s) strings from the message body that was/ were produced by the print() method.
Return:
Type | Description |
---|---|
String | The message string. |
Example:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
(function runNotificationScript( /* SimpleRecord */ current, /* SimpleTemplatePrinter */ template, /* SimpleEmailOutbound */ email, /* SimpleRecord */ event ) { template.getPrint(); })(current, template, email, event); |
getSpace()
This Use this message returns to return 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:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
(function runNotificationScript( /* SimpleRecord */ current, /* SimpleTemplatePrinter */ template, /* SimpleEmailOutbound */ email, /* SimpleRecord */ event ) { template.getSpace(); })(current, template, email, event); |
print(string)
This method allows inserting inserts 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:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
(function runNotificationScript( /* SimpleRecord */ current, /* SimpleTemplatePrinter */ template, /* SimpleEmailOutbound */ email, /* SimpleRecord */ event ) { template.print('SimpleOne'); })(current, template, email, event); |
space(spaces)
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:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
(function runNotificationScript( /* SimpleRecord */ current, /* SimpleTemplatePrinter */ template, /* SimpleEmailOutbound */ email, /* SimpleRecord */ event ) { template.space(3); })(current, template, email, event); |
Table of Contents | ||||
---|---|---|---|---|
|