The e-mail template for the subscriber notification via the directory settings (subscription)
You can call up the standard email template for editing in the source text editor.
Here you define the email header and content of the email. Pay attention to the RFC-compliant structure of the e-mail.
From: [!--system.mail--] To: [!--receiver.mail--] Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Es gibt neue Inhalte [!--env.hostURL--] Sie haben das Verzeichnis [!--env.url--] abonniert und erhalten deshalb diese Information über neue Inhalte. Über den nachfolgenden Link können Sie das Abo beenden: [!--wUnsubscribeURL--]
From CMS version 016.002.042.000 it is possible to execute your own scripts in the subscription email template.
To use this, save a file that has the onSendAbo function defined and include it using the placeholder [!--script:PATH--].
This allows you to read out the latest file or similar, for example.
Such an e-mail template can look like this, for example:
From: [!--system.mail--] To: [!--receiver.mail--] Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Es gibt neue Inhalte [!--env.hostURL--] Sie haben das Verzeichnis [!--env.url--] abonniert und erhalten deshalb diese Information über neue Inhalte. [!--script:/default-wGlobal/wGlobal/scripts/php/abo.php--] Über den nachfolgenden Link können Sie das Abo beenden: [!--wUnsubscribeURL--]
An example of the linked script file (abo.php) can be found below and can be customized.
<?php
function onSendAbo($path, $options){
return $path;
}
?>