Here you can find serveral examples about the usage.
Mail Subject
The mail subject can be individually defined per reminder. So you can define for the last reminder a subject like "Your domain expires tomorrow" and for the first reminder "Your domain expires in ... days".
A list of all variables is available on this page.
Amount | Syntax | Result |
---|---|---|
1 Domain | Your domain %domain% expires in %days_until_expiry% days | Your domain example.org expires in 5 days |
2 Domains | Your domain <listdomains>1</listdomains> expires | Your domain example.org expires |
2 Domains | Your domain <listdomains>10</listdomains> expires | Your domain example.org, example.net expires |
5 Domains | Your domain <listdomains>2</listdomains><ifmore> and %remaining_count% more</ifmore> expires | Your domain exmaple.org, example.net and 3 more expires |
3 Domains | %total_expire_amount% of your %total_domain_amount% domains expires in few days (<listdomains>1</listdomains><ifmore> and %remaining_count% more</ifmore>)! | 3 of your 5 domains expires in few days (example.org and 2 more) |
2 Domains | Your domains expire on %expiry_date% | Your domains expire on |
3 Domains | %total_expire_amount% domains expire on %expiry_date% | 3 domains expire on |
Mail Body
You should always loop through the $expiring_domains array. Even if only a single domain expires.
This makes your template compatible to the domain grouping feature.
List Domains
{foreach from=$expiring_domains item=domain} {$domain.name} - {$domain.nextduedate} ({$domain.days} Days) {if $invoice_link} <a href="{$invoice_link}">Pay Invoice {$invoice_id}</a> {else} {$renew_link} {/if} {/foreach}
List all invoices:
{if $all_invoice_links} Please click the following link to pay the renewal: {foreach from=$all_invoice_links item=invoice_link} {$invoice_link} {/foreach} {/if}
Handle singular / pluar
Your {if $Multi}domains{else}domain{/if} expire ...
Different text by reminder type
If you have multiple reminders, it can be awkward to define everything in one mail. The module can therefore use a separate mail template for each reminder.
The mail template can be selected in the module configuration.
{if $reminder_type eq 1} This is your first reminder about ... {/if} {if $reminder_type eq 5} This is your last reminder {/if}