29 lines
1.5 KiB
PHP
29 lines
1.5 KiB
PHP
<?php
|
|
// Template-Mapping (Staging)
|
|
$emailtemplates = [
|
|
'registration_confirm' => 'Neues Template neue Logik',
|
|
'registration_welcome' => 'Template 1',
|
|
'registration_resend_code' => 'template mit block',
|
|
'password_reset' => 'template mit block',
|
|
];
|
|
|
|
/**
|
|
* Hinweis:
|
|
* Der Mailer liest ausschließlich via getenv(). Setze die Variablen in der
|
|
* Server-Umgebung. Falls das nicht möglich ist, kannst du hier fallback putenv()
|
|
* nutzen. Beispiel (Platzhalter bitte anpassen/entfernen):
|
|
*/
|
|
|
|
// putenv erwartet den String "KEY=VALUE". Die if-Blöcke setzen nur dann Defaults,
|
|
// wenn in der Umgebung noch nichts gesetzt ist.
|
|
if (getenv('EMAILTEMPLATE_API_BASE') === false) putenv('EMAILTEMPLATE_API_BASE=https://staging.emailtemplate.it/external/render');
|
|
if (getenv('EMAILTEMPLATE_API_TOKEN') === false) putenv('EMAILTEMPLATE_API_TOKEN=qYLV9OLOJ48WPs0CLrnOWpkok1o1wRN_kGsdMVzumzPEYQP-rHxhnn0YlSWGW5hH');
|
|
if (getenv('MAIL_TRANSPORT') === false) putenv('MAIL_TRANSPORT=smtp');
|
|
if (getenv('MAIL_FROM') === false) putenv('MAIL_FROM=no-reply@papa-kind-treff.info');
|
|
if (getenv('MAIL_FROM_NAME') === false) putenv('MAIL_FROM_NAME=Papa-Kind-Treff');
|
|
if (getenv('SMTP_HOST') === false) putenv('SMTP_HOST=');
|
|
if (getenv('SMTP_PORT') === false) putenv('SMTP_PORT=587');
|
|
if (getenv('SMTP_USER') === false) putenv('SMTP_USER=');
|
|
if (getenv('SMTP_PASS') === false) putenv('SMTP_PASS=');
|
|
if (getenv('SMTP_SECURE') === false) putenv('SMTP_SECURE=tls');
|