Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This server class provides methods that withdraw extract information from the mail script and print it out to in the message.

getPrint()


This Use this method returns the string(s) to return the strings from the message body that was/ were produced by the print() method.

Return:

TypeDescription
String
The
This method returns the message string.

Example:

Code Block
languagejs
themeEclipse
titlegetPrint
linenumberstrue
(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:

TypeDescription
Integer
Spaces number
This method returns the number of spaces in the message body.

Example:

Code Block
languagejs
themeEclipse
titlegetSpace
linenumberstrue
(function runNotificationScript(
    /* SimpleRecord */ current, 
    /* SimpleTemplatePrinter */ template,
    /* SimpleEmailOutbound */ email,
    /* SimpleRecord */ event
    ) {
template.getSpace();
})(current, template, email, event);

print(string)


This method allows inserting Use this method to insert the text string to into the message body.

Parameter(s):

NameTypeMandatoryDefault
Value
value
stringStringYN

Return:

TypeDescription
VoidThis method does not return a value.

Example:

Code Block
languagejs
themeEclipse
titleprint
linenumberstrue
(function runNotificationScript(
/* SimpleRecord */ current,
/* SimpleTemplatePrinter */ template,
/* SimpleEmailOutbound */ email,
/* SimpleRecord */ event
) {
template.print('SimpleOne');
})(current, template, email, event);

space(spaces)


This Use this method inserts to insert a sequence of spaces (one after another) in the message body.

Parameter(s):

NameTypeMandatoryDefault
Value
value
spacesIntegerYN

Return:

TypeDescription
VoidThis method does not return a value.

Example:

Code Block
languagejs
themeEclipse
titlespace
linenumberstrue
(function runNotificationScript(
    /* SimpleRecord */ current, 
    /* SimpleTemplatePrinter */ template,
    /* SimpleEmailOutbound */ email,
    /* SimpleRecord */ event
    ) {
template.space(3);
})(current, template, email, event);


Table of Contents
absoluteUrltrue
classfixedPosition