Automatic Email Notifications¶
In Plesk, you can set up automatic email notifications to inform yourself as well as your customers and resellers about certain events, such as:
- The expiration of a subscription.
- The suspension of an account.
- The resource usage limit for a subscription being exceeded, and so on.
Most notifications are sent out immediately except for:
- Notifications for resource overuse and account suspension. Those are sometimes sent up to 24 hours after the event has occurred.
- Expiration warnings (currently only “Subscription expiration warning”). For them you can specify how many days in advance the notification will be sent.
The notifications are customizable. For each notification, you can:
- Specify its recipients.
- Change its text and subject.
- Customize its look.
- See how it looks in emails.
Specifying recipients of the notifications¶
Go to Tools & Settings > Notifications.
Find a notification and specify who will receive it:
- Customers, resellers, and/or yourself. To send to these recipients, select the corresponding checkboxes. The email addresses will be taken from the contact information.
- A single custom email. To send to the custom email, select the checkbox next to the “Email address” field and fill in the email.
You can send the notification both to the custom email and to email addresses taken from the contact information.
When you are satisfied with the specified recipients, click OK.
Changing the text and subject of the notification¶
Go to Tools & Settings > Notifications.
Find a notification whose text and/or subject you want to edit and then click the icon on the corresponding line.
Change the notification text and/or subject. You can use HTML tags to format the text.
Note
When customizing the default template, keep the placeholders. Usually you will see placeholders in the text of the notification. They are replaced with actual values when the notifications are sent out. Find the complete list of available placeholders below.
When you are satisfied with the edited text and/or subject, click OK.
Customizing the look of the notifications¶
The default HTML template defines how the notifications look. You can customize the default look by changing the default template or uploading a custom one.
To change the way the notifications look:
Customize the default
/usr/local/psa/admin/conf/email_notification_template.html.sample
template, copy it to/usr/local/psa/admin/conf/email_notification_template.html
and then edit the copied file.Note
When customizing the default template, keep the placeholders.
Create a new template, name it
email_notification_template.html
and upload it to the/usr/local/psa/admin/conf/
directory.The look of the notifications will be now defined by the
usr/local/psa/admin/conf/email_notification_template.html
template.
Note
We recommend that you keep the default
/usr/local/psa/admin/conf/email_notification_template.html.sample
template.
Then if you are not satisfied with a customized or an uploaded template,
just delete it and the default look of the notifications will be back.
Note
If the default /usr/local/psa/admin/conf/email_notification_template.html.sample
template is missing, it will be automatically restored
during the next Plesk update.
Previewing the notification¶
You can always see how a notification will look in emails. It is particularly useful if you have changed the text or customized the look of the notifications and want to see the result.
To see how a notification will look in emails:
Go to Tools & Settings > Notifications.
Find a notification that you want to preview and then click the icon on the corresponding line. The preview will be opened in a new tab.
See how the notification looks in emails.
Note
Usually you will see placeholders in the text of the notification. They are replaced with actual values when the notification is sent out.
Available placeholders¶
{% raw %}
Event type | Tags that can be used in notices | The data that tags denote |
---|---|---|
Creation of a reseller or customer account |
|
user’s first and last name |
|
user name for authorization in Plesk | |
{{ password }} |
user’s password for authorization in Plesk | |
|
company name | |
|
user account creation date | |
|
phone number | |
|
fax number | |
|
country | |
|
state or province | |
|
city | |
|
postal or ZIP code | |
|
address | |
|
unique identifier assigned by the system | |
|
||
|
account expiration date | |
{{ hostname }} |
host name for access to Plesk | |
Addition of a new website to the server | {{ domain }} |
domain name |
|
user name for authorization in Plesk | |
|
user’s first and last name | |
{{ dom_id }} |
unique identifier assigned by the system | |
{{ ip }} |
IP address the website is hosted on | |
Subscription expiration notices | {{ domain_name }} |
subscription name |
|
user name for authorization in Plesk | |
|
user’s first and last name | |
{{ dom_id }} |
unique identifier assigned by the system | |
{{ domain_expiration_date }} |
subscription expiration date | |
APS application updates notices | {{ available_updates_text }} |
text about available updates |
{{ available_updates_list }} |
list of available updates | |
{{ installed_updates_text }} |
text about installed updates | |
{{ installed_updates_list }} |
list of installed updates | |
{{ requirements_updates_text }} |
text about updates in application requirements | |
{{ requirements_updates_list }} |
list of updates in application requirements | |
Resource overuse notices | {{ domain_name }} |
subscription name |
{{ limit_name }} |
name of a resource | |
|
user name for authorization in Plesk | |
|
user’s first and last name | |
{{ disk_usage }} |
information about disk space usage | |
{{ disk_space_limit }} |
information about the amount of disk space allocated to the account | |
{{ resource_table }} |
information about all resource limits that were or will soon be reached | |
{{ traffic }} |
information about bandwidth usage | |
{{ traffic_limit }} |
information about the bandwidth amount allotted to the account |
{% endraw %}
Note
{% raw %}If you upgraded to Plesk Obsidian from an earlier version, then all custom
notifications templates you previously used remain in effect. Because of
changes in user accounts hierarchy and addition of resource overuse
scheme, now any type of resource can be overused. Therefore, to show
information about all overused resources in notifications’ templates, we
recommend using a single variable {{ resource_table }}
instead of the
variables {{ disk_usage }}
, {{ disk_space_limit }}
, {{ traffic }}
, and
{{ traffic_limit }}
.{% endraw %}