You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Customize notification e-mail templates

In Syncope you can customize and create your own template messages to personalize the body of notification messages.

This can be achived creating or modifing the email template files. Each e-mail template it's made of a couple of files:one for HTML version and one for the text version of the email message body.

Default template direcotry is located at "/WEB-INF/classes/mailTemplates" of Syncope core web application.

It contains the "optin" default notification template files:

  • optin.html.vm
  • optin.txt.vm

These files are Velocity template files. Syncope use Velocity (http://velocity.apache.org) as template engine to reference and process objects injected by Syncope.

If you want to create your own email template, e.g. "custom-notification", you just need to create a couple of files named "custom-notification.html.vm" and "custom-notification.txt.vm"

Within these files you can use Velocity expressions and reference the following Syncope
injected variables:

  • user
  • syncopeConf

Refer to default template files to find out how refer to objects and write simple velocity expressions to customize your message body.

  • No labels