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

  1. Go to Tools & Settings > Notifications.

  2. 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.

  3. When you are satisfied with the specified recipients, click OK.

Changing the text and subject of the notification

  1. Go to Tools & Settings > Notifications.

  2. Find a notification whose text and/or subject you want to edit and then click the image-icon-edit.png icon on the corresponding line.

  3. 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.

  4. 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:

  1. Go to Tools & Settings > Notifications.

  2. Find a notification that you want to preview and then click the image-icon-preview.png icon on the corresponding line. The preview will be opened in a new tab.

  3. 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

{{ reseller_contact_name }}

{{ client_contact_name }}

user’s first and last name
 

{{ reseller_login }}

{{ client_login }}

user name for authorization in Plesk
  {{ password }} user’s password for authorization in Plesk
 

{{ reseller_company_name }}

{{ client_company_name }}

company name
 

{{ reseller_cr_date }}

{{ client_cr_date }}

user account creation date
 

{{ reseller_phone }}

{{ client_phone }}

phone number
 

{{ reseller_fax }}

{{ client_fax }}

fax number
 

{{ reseller_country }}

{{ client_country }}

country
 

{{ reseller_state_province }}

{{ client_state_province }}

state or province
 

{{ reseller_city }}

{{ client_city }}

city
 

{{ reseller_postal_ZIP_code }}

{{ client_postal_ZIP_code }}

postal or ZIP code
 

{{ reseller_address }}

{{ user_address }}

address
 

{{ reseller_id }}

{{ user_id }}

unique identifier assigned by the system
 

{{ reseller_email }}

{{ client_email }}

email
 

{{ reseller_expiration_date }}

{{ client_email_expiration_date }}

account expiration date
  {{ hostname }} host name for access to Plesk
Addition of a new website to the server {{ domain }} domain name
 

{{ reseller_login }}

{{ client_login }}

user name for authorization in Plesk
 

{{ reseller_contact_name }}

{{ client_contact_name }}

{{ user_contact_name }}

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
 

{{ reseller_login }}

{{ client_login }}

{{ user_login }}

user name for authorization in Plesk
 

{{ reseller_contact_name }}

{{ client_contact_name }}

{{ user_contact_name }}

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
 

{{ reseller_login }}

{{ client_login }}

{{ user_login }}

user name for authorization in Plesk
 

{{ reseller_contact_name }}

{{ client_contact_name }}

{{ user_contact_name }}

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 %}