You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 7 Current »
Этот серверный класс содержит методы для извлечения информации из скрипта почты и ее печати в сообщении.
Используйте метод, чтобы получить строки из тела сообщения, которые были произведены посредством метода print().
Возвращаемое значение:
Пример:
(function runNotificationScript( /* SimpleRecord */ current, /* SimpleTemplatePrinter */ template, /* SimpleEmailOutbound */ email, /* SimpleRecord */ event ) { template.getPrint(); })(current, template, email, event);
Используйте этот метод, чтобы получить количество пробелов в теле сообщения, полученных методом space(spaces).
(function runNotificationScript( /* SimpleRecord */ current, /* SimpleTemplatePrinter */ template, /* SimpleEmailOutbound */ email, /* SimpleRecord */ event ) { template.getSpace(); })(current, template, email, event);
Используйте метод для вставки строки текста в тело сообщения.
Параметр:
(function runNotificationScript( /* SimpleRecord */ current, /* SimpleTemplatePrinter */ template, /* SimpleEmailOutbound */ email, /* SimpleRecord */ event ) { template.print('SimpleOne'); })(current, template, email, event);
Используйте этот метод, чтобы вставить цепочку пробелов (один за другим) в тело письма.
(function runNotificationScript( /* SimpleRecord */ current, /* SimpleTemplatePrinter */ template, /* SimpleEmailOutbound */ email, /* SimpleRecord */ event ) { template.space(3); })(current, template, email, event);