Customize emails for cost usage reports
Abiquo will customize emails using template and properties files with the following priority:
Localized files for US English, such as
costUsageReportTemplate_en_US.mustache
andcostUsageReport_en_US.properties
There is a known issue in Abiquo 6.2.0 where the server cannot find the properties file, so you cannot customize the subject of the mailFiles with no language code extension, such as
costUsageReportTemplate.mustache
andcostUsageReport.properties
System defaults, with content as shown in the examples below
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 thetomcat
user/opt/abiquo/config/mail
In the
mail
folder, create the following filesEmail file for notification of report ready for download
costUsageReportTemplate_en_US.mustache
<p>Hi {{username}},</p> <p>Your cost usage report {{reportname}} has been generated. You can now download it from your Abiquo portal</p> <p>To make any changes, please go to the Cost usage reports tab in the Abiquo platform and edit your scheduled reports.</p> <p>Thank you,</p> <p>The Abiquo Team</p>
Properties file for notification of report ready for download
There is a known issue in Abiquo 6.2.0 where the server cannot find the properties file, so you cannot customize the subject of the mailcostUsageReport_en_US.properties
subject=Abiquo cost usage report ready to download
If you change the
subject
property, you must restart the Tomcat server to apply your changesEmail file for notification of cancelled report
costUsageReportScheduleNotAvailableTemplate_en_US.mustache
Properties file for notification of cancelled report
costUsageReportScheduleNotAvailable_en_US.properties
If 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
Then in your properties file, set a 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.
Change the owner of the files to the
tomcat
user
Copyright © 2006-2024, Abiquo Holdings SL. All rights reserved