... | ... | @@ -24,18 +24,6 @@ Choose an e-mail template from the list and click edit. |
|
|
|
|
|
All the fields (`From, To, Cc, Bcc, Subject, Body`) are rendered with velocity. Which variables are visible in the velocity context depends on the caller. In case of an user registration the variables `user`, `service` and `registry` are usable in the rendering context. When a user is created initially when visiting the reg-app the fist time, only the `user` variable is usable.
|
|
|
|
|
|
### Example
|
|
|
* [E-Mail Template Example](../velocity/example_email)
|
|
|
|
|
|
```
|
|
|
From: dr@evil-corp.com
|
|
|
To: $user.email
|
|
|
Cc:
|
|
|
Bcc: admin@evil-corp.com
|
|
|
Subject: Welcome to evil services
|
|
|
|
|
|
Body:
|
|
|
Dear Mr./Ms. $user.surName,
|
|
|
|
|
|
you have succesfully been entitled to use the service $service.name.
|
|
|
lorem ipsum...
|
|
|
``` |