Customize emails for guest password SMS
This page describes how to customize the emails to notify users by SMS of the VM password set by the platform
Abiquo will customize emails using template and properties files with the following priority:
Localized files, with a language code extension, such as
guestPasswordSMSTemplate_en_US.mustache
andguestPasswordSMS_en_US.properties
Main files with no language code extension, such as
guestPasswordSMSTemplate.mustache
andguestPasswordSMS.properties
System defaults, with content as shown in the examples below
To customize emails for guest password SMS notifications:
Log in to the Abiquo API Server as an administrator
In the config folder, if there is no mail folder, create a
mail
folder and set the owner as the tomcat user/opt/abiquo/config/mail
In the mail folder, create the following files
Email file
guestPasswordSMSTemplate_en_US.mustache
Virtual machine: Uuid: {{vmuuid}} Name: {{vmname}} ProviderId: {{vmproviderid}} Password: {{loginpassword}}
The additional content that you can add for this SMS is as follows
Login user: {{loginuser}} Fully qualified domain name: {{fqdn}} User that created the VM: {{username}}
Properties fileÂ
guestPasswordSMS_en_US.properties
By default the properties file is empty for the guest password SMS message
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
Then in your properties file, set value for your custom variable
 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 language other than English, rename the file to change the language code to the user languageÂ
For example, for
Spanish - Spain
changeÂen_US
 toÂes_ES
The user language is the language of the locale of the user
Change the owner of the files to theÂ
tomcat
 user
Copyright © 2006-2024, Abiquo Holdings SL. All rights reserved