Constructs a new object implementing the EmailTemplate interface.

function O.email.template(code)

Creates a new EmailTemplate object representing the template with the specified API code.

If no name is specified, the default ‘Generic’ email template will be returned.

If the template does not exist, undefined will be returned.

Email templates are created in System Management.

Your Name » System management » Email templates