This server class provides methods for printing out from a mail script to the message.

getPrint()

This method returns the string(s) from the message body that was/were produced by the print() method.


Return:

TypeDescription
StringThe message string.


Example:

(function runNotificationScript(
    /* SimpleRecord */ current, 
    /* SimpleTemplatePrinter */ template,
    /* SimpleEmailOutbound */ email,
    /* SimpleRecord */ event
    ) {
template.getPrint();
})(current, template, email, event);

getSpace()

This message return the spaces number in the message body that were produced by the space(spaces) method,


Return:

TypeDescription
IntegerSpaces number in the message body.


Example:

(function runNotificationScript(
    /* SimpleRecord */ current, 
    /* SimpleTemplatePrinter */ template,
    /* SimpleEmailOutbound */ email,
    /* SimpleRecord */ event
    ) {
template.getSpace();
})(current, template, email, event);

print(string)

Prints the text string to the message body.


Parameter(s):

NameTypeMandatoryDefault Value
stringStringYN


Return:

TypeDescription
VoidThis method does not return a value.


Example:

(function runNotificationScript(
/* SimpleRecord */ current,
/* SimpleTemplatePrinter */ template,
/* SimpleEmailOutbound */ email,
/* SimpleRecord */ event
) {
template.print(“SimpleOne”);
})(current, template, email, event);


space(spaces)

This method adds non-breaking spaces to the message body


Parameter(s):

NameTypeMandatoryDefault Value
spacesIntegerYN


Return:

TypeDescription
VoidThis method does not return a value.


Example:

(function runNotificationScript(
    /* SimpleRecord */ current, 
    /* SimpleTemplatePrinter */ template,
    /* SimpleEmailOutbound */ email,
    /* SimpleRecord */ event
    ) {
template.space(3);
})(current, template, email, event);