improve handling of template variables

This commit is contained in:
2019-08-28 16:07:26 +02:00
parent 6ec70b834f
commit b41ae30335
7 changed files with 75 additions and 38 deletions

View File

@@ -82,12 +82,19 @@ reject_reason = Message rejected
#
notification_type = email
# Option: notification_email_from
# Notes: Set the from address used when sending notification emails.
# Option: notification_email_envelope_from
# Notes: Set the envelope-from address used when sending notification emails.
# This option is needed by notification type 'email'.
# Values: [ FROM_ADDRESS ]
# Values: [ ENVELOPE_FROM_ADDRESS ]
#
notification_email_from = notification@domain.tld
notification_email_envelope_from = notification@domain.tld
# Option: notification_email_from
# Notes: Set the from header used when sending notification emails.
# This option is needed by notification type 'email'.
# Values: [ FROM_HEADER ]
#
notification_email_from = Notification <notification@domain.tld>
# Option: notification_email_usbject
# Notes: Set the subject used when sending notification emails.

View File

@@ -2,6 +2,10 @@
<body>
<h1>Quarantine notification</h1>
<table>
<tr>
<td><b>Envelope-From:</b></td>
<td>{EMAIL_ENVELOPE_FROM}</td>
</tr>
<tr>
<td><b>From:</b></td>
<td>{EMAIL_FROM}</td>