By default we use the following template files in the classpath of the
You can set your custom template location using application properties (use app.properties file of the
These email templates are based on Groovy SimpleTemplateEngine syntax, thus you can use Groovy blocks inside of the template content. For instance:
The password for your CUBA Application account has been reset by administrator.
Please login with the following temporary password:
and immediately create a new one for the further work.
Data binding for these templates contains the following variables: user, password, persistence. In fact, you can use any Spring beans of the middleware if you import AppBeans class and get them using
See also: http://docs.groovy-lang.org/2.4.6/html/api/groovy/text/SimpleTemplateEngine.html