The notify() command sends an email notification to a recipient to be defined when processing another email.
This command creates an email notification to a recipient to be defined using the template. Optionally, header or x-headers can be written into this notification email.
Structure of the command
notify('recipient','template', ['header:value[;header:value]']);
Return value
positive |
always |
Parameters
recipient
Specification of the recipient email address of the notification email.
Possible values
•Email address |
Sends a notification to the specified SMTP email address. |
•sender |
Notifies the original sender of the email. |
•admin |
Notifies the local SEPPmail Secure E-Mail Gateway administrator Who is defined in Mail System SMTP settings under Postmaster address. |
template
This parameter defines the template to be used for this notification email.
The template can be created and managed in Mail System Edit mail templates....
header (optional)
Indication of the header to be written including the related value.
Possible values for header
•return-path: |
|
•date: |
|
•from: |
The standard sender is the Postmaster address (see Mail System SMTP Settings and/or Settings) |
•sender: |
|
•reply-to: |
|
•to: |
|
•cc: |
|
•subject: |
Default subject is "Notification" |
•any X-header |
|
Example 1
Line |
Code |
---|---|
01 |
notify('sender','bounce_noenc','from: "System Admin" <admin@mycompany.tld>;subject: notification; x-MyOwnHeader: Test'); |
Explanation
In this example, a notification email is generated to the original sender – which is provided via the sender variable. The default template bounce_noenc is used as the template for this email. In the header of the notification email, ""System Admin" <admin@mycompany.tld>" is set as the sender and "notification" is set as the subject line. Furthermore, an X-header with the name "x-MyOwnHeader" and the value "Test" is written.