feat(mailing): Kundenrundmail mit Empfängern aus Buchungen, Abmeldelink und Versandprotokoll
Empfänger kommen aus bookings.email (dedupliziert, ohne Abmeldungen), Text mit
{jahr}, Testmail an die eigene Adresse, Versand in Häppchen über mail_send().
Abmeldungen landen in mail_optouts und gelten für alle künftigen Rundmails.
Migration 009_mailing.sql, DSGVO-Verzeichnis und ROADMAP (Feature 18) ergänzt.
This commit is contained in:
parent
1adc3c8f33
commit
5cce6ca86f
11 changed files with 657 additions and 1 deletions
|
|
@ -33,6 +33,7 @@ require DIC_APP . '/auth.php';
|
|||
require DIC_APP . '/data.php';
|
||||
require DIC_APP . '/push.php';
|
||||
require DIC_APP . '/mail.php';
|
||||
require DIC_APP . '/mailing.php';
|
||||
require DIC_APP . '/inquiry.php';
|
||||
require DIC_APP . '/invite.php';
|
||||
require DIC_APP . '/privacy.php';
|
||||
|
|
@ -65,7 +66,7 @@ if (PHP_SAPI !== 'cli') {
|
|||
$path = current_path();
|
||||
$legalPublic = legal_is_public_path($path);
|
||||
security_headers($legalPublic);
|
||||
$sessionFree = ['/health', '/cron/reminders', '/anfrage'];
|
||||
$sessionFree = ['/health', '/cron/reminders', '/anfrage', '/abmelden'];
|
||||
if (!$legalPublic && !in_array($path, $sessionFree, true)) {
|
||||
start_session();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue