notification.exe: E-mail Notification About System Events
The notification.exe utility is used for configuring automatic
sending of e-mail notices on system events.
Location
%plesk_cli%
Usage
notification.exe <command>
<option 1> <param> [<option 2> <param>] ... [<option N> <param>]
Example
The following command configures Plesk to notify the server administrator when a new customer account is created:
plesk bin notification.exe --update -code client_creation -send2admin true
Commands
Command |
Parameter |
Description |
Example |
|---|---|---|---|
|
|
Updates automatic notification settings for a specific event. The available codes are provided in the Supported notification codes table below. |
To configure Plesk to notify the server administrator when a new customer account is created: plesk bin notification.exe --update -code client_creation -send2admin true |
|
|
By default, Plesk is configured to send subscription expiration
warnings 10 days in advance. You can adjust this setting with
the |
To set the number of days for sending the expiration warnings 5 days in advance: plesk bin notification.exe --expiration 5 |
|
Displays help on the use of the utility. |
To view a help page for the utility: plesk bin notification.exe --help |
Options
Option |
Parameter |
Description |
Example |
|---|---|---|---|
|
|
Specifies the code of a system event. The available codes are provided in the Supported notification codes table below. |
To configure Plesk to notify the server administrator when a new customer account is created: plesk bin notification.exe --update -code client_creation -send2admin true |
|
|
Enables sending of notices about the specified event to the server administrator. |
|
|
|
Enables sending of notices about the specified event to the appropriate reseller accounts. |
To configure Plesk to notify the resellers when new customer accounts are created: plesk bin notification.exe --update -code client_creation -send2reseller true |
|
|
Enables sending of notices about the specified event to the appropriate customer accounts. |
To configure Plesk to notify customers about creation of their accounts: plesk bin notification.exe --update -code client_creation -send2client true |
|
|
|
Enables sending of notices about the specified event to the specified e-mail address. |
To configure Plesk to send an e-mail notice to
plesk bin notification.exe --update -code client_creation -send2email true -email postmaster@example.com |
|
|
Specifies the e-mail address to which notices should be sent. |
|
|
|
Specifies the e-mail message subject for a notice. |
The following example customizes the properties of the notice sent on customer account creation: plesk bin notification.exe --update -code client_creation -subj "Your account credentials" -text "Dear <client_contact_name>, to log in to your Control Panel, go to https://<hostname>:8443. Your username is <client_login> and the password is <password>" |
|
|
The notice text that should be sent. In the text, you can use variables that will be substituted with the appropriate data. For a list of supported variables, refer to Plesk Administrator’s Guide, chapter Configuring the Server, section Configuring E-mail Notification System. |
Supported notification codes
Code |
Action |
|---|---|
|
Customer account creation |
|
Site creation |
|
Resource usage limits exceeded by subscription |
|
Subscription expiration |
|
Subscription expiration warning |
|
Reseller account creation |
|
Resource usage limits exceeded by a reseller account |
|
Subscription suspended due to resource overuse |
|
Reseller account suspended due to resource overuse |
|
Reseller’s resource usage limits reached by reseller’s subscriptions due to overselling |
|
Application updates on an administrator’s subscription |
|
Application updates on a reseller’s subscription |
|
Application updates on an customer’s subscription |
|
Attempts to exceed outgoing limits for domains, mailboxes and subscriptions |
|
System Updates: notifications about new updates |
|
The resource usage threshold has been exceeded |
|
Feedback reminder |