Info |
---|
This page describes how to customize the emails that Abiquo will send to users to reset their passwords |
Tip |
---|
Abiquo will customize emails using template and properties files with the following priority:
|
To customize the emails for users to reset their Abiquo passwords:
Log in to the Abiquo API Server as an administrator
In the
config
folder, if there is nomail
folder, create amail
folder and set the owner as thetomcat
userCode Block /opt/abiquo/config/mail
In the
mail
folder, create the following filescustom files as required. You can create localized files and main files.
The content of the default files is shown here.Email file:
for example, as a localized file for US English, resetPasswordTemplate_en_US.mustacheCode Block language xml <p>Hi,</p> <p>We've received a request to reset the password associated with:</p> <p><strong>{{username}}</strong></p> <p>Please use the following link:</p> <p>{{link}}</p> <p>If you did not request the password reset, please ignore this email.</p> <p>Thank you,</p> <p>The Abiquo Team</p>
Properties file:
for example, as a localized file for US English, resetPassword_en_US.propertiesCode Block subject=Reset Your Abiquo Password
You cannot set values of the
username
and linklink
properties. If you set these values, the platform will overwrite themIf you change the
subject
property, you must restart the Tomcat server to apply your changes
Optionally, add custom variables and content.
In the email body, to add a custom variable, use double curly braces (also called double mustaches). For example
Code Block <p>Please call your system Administrator on <strong>{{helpline}}</strong></p>
Then in your properties file, set a value for your custom variable
Code Block helpline=555 12345
To return unescaped HTML as part of a template property, use the triple mustache, which is
{{{
and}}}
.
The Mustache templating software that adds the property values will escape HTML variables in double mustaches by default.
If your users have a different locale, such as when they use a language other than English, rename the file to change to use the language code for the user locale
For example, for
Spanish - Spain
change the changeen_US
toes_ES
.The user locale is set You can set a locale when you create the an Abiquo user
Change the owner of the files to the
tomcat
userIf you changed the subject property, restart the Tomcat server
...