![]() |
BillMax Billing Solutions 877.245.5629 sales@billmax.com |
Email Templates — Definition of Email Templates
BillMax contains with a number of e-mail templates. These templates are used when BillMax sends e-mails to Account holders and Service users.
The e-mail templates are located in /usr/local/billmax/local. For each e-mail template a copy of the e-mail template is in a file that has the extension ".email-dist". This file is the original delivered with BillMax and should not be modified. An identical copy of the template is in the file that has the extension ".email". This file is available for modification.
Example 4.5. /usr/local/billmax/local/ccdecline.email
To: @@TO@@ (1) From: @@FROM@@ Subject: @@SUBJECT@@ According to our records, your credit card (ending in @@LAST4@@) will expire in @@DAYS@@ days. In order to prevent an interruption in service, please send the new card number and/or expiration date. You can either reply to this email or call our office at @@config.phone@@. (2) Thank you for your business! Billing Department @@config.company@@ @@FROM@@
| (1) | BillMax will substitute a value for a string that is surrounded by "@@" characters. The substitutions recognized by BillMax and the values used for the substitutions depend on the e-mail template being processed. |
| (2) |
An example of using a value from the config table for the substitution. In addition to predefined values, values from the config table may be substituted. Here, the value from config.phone (i.e. the phone field of the config table) is substituted for " |
The following substitution strings (not including those from the config table) are recognized by BillMax for the following e-mail templates. The second column indicates the value (e.g. table.field) for the substituted string.
/usr/local/billmax/local/ccdecline.emailUsed by ccparse for sending "declined electronic funds transaction" e-mails to Account holders.
"account account.number"
The last four characters of account.ccnum if account.ccnum has more than four characters. Otherwise the string "unknown".
The amount of the transaction.
"DECLINED"
/usr/local/billmax/local/ccexpire.emailUsed by closeofday to notify Account holders that the expiration date of a credit card on record is approaching.
"account account.number"
The last four characters of account.ccnum if account.ccnum has more than four characters. Otherwise the string "unknown".
/usr/local/billmax/local/gracewarn.emailUsed by closeofday to notify Account holders of expiring Grace Dates.
"account account.number"
/usr/local/billmax/local/overdue.emailUsed by closeofday to notify Account holders of amounts overdue.
"account account.number is past due"
The amount that is overdue.
/usr/local/billmax/local/svcexpire.emailUsed by closeofday to notify Account holders of upcoming expiration dates for Services.
"Expiration of service.d01"
"30"
/usr/local/billmax/local/usagereport.emailUsed by closeofday to notify Account holders of usage associated with Tierplan billing.
"Usage Report for account accountname" where accountname is the first 60 characters of "account.number account.cfname account.clname account.company".
The result of the executing /usr/local/billmax/bin/usage for a specific Service.
This is the first 60 characters of "account.number account.cfname account.clname account.company".
This is composed of service.number and service.d01.
/usr/local/billmax/local/usagesusp.emailUsed by radiusd processing to notify Account holders when a Service State is change to Suspended State due to the usage limits being met or exceeded.
"service.oususp/3600"
"service.ouprimesusp/3600"
/usr/local/billmax/local/usagewarn.emailUsed by radiusd processing to notify Account holders when a Service usage has either 1) exceeded service.ounotice but is less than service.oususp; or 2) exceeded service.ouprimenotice but is less than service.ouprimesusp.
"service.totseconds/3600"
"service.ouprimenotice/3600"
"service.oususp/3600"
"service.ouprimesusp/3600"