$getEmailService()

Overview

public any function $getEmailService()

Returns an instance of the Email service. This service can be used for sending templated emails. See Email templating (pre-10.8.0) for a full guide.

Example

var emailTemplates = $getEmailService().listTemplates();