Every email template contains four different fields
If you leave the from, to or subject field empty in the template the data will be taken from the argument provided when calling the service. However if the template have ANY value in the field, the argument provided when calling the service will be ignored.
The Subject and Body field have full handlebars support. If you are unfamiliar with Handlebars please read this article before continue with this article.
The data added to the handlebars context may vary depending on the way the email service is executed.
From Password Reset service
See this page for a full list of parameters.
From Invite user service
See this page for a full list of parameters.
From Visual Coding
When using the Cloud.Email.Send manager to send emails the following parameters will be available in the handlebars context:
All of the supplied parameters may be used in both the Subject and Body field.
Example:
These parameters is supplied to the template:
And our Subject field is set to
Hi {{Value1}} {{Value2}}
The subject to the email will then be:
Hi John Doe
Please note that you may use all the handlebars expressions and helpers as described in the handlebars article.