27 lines
1.2 KiB
PHP
27 lines
1.2 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('EMAILTEMPLATE_API_BASE=' . (getenv('EMAILTEMPLATE_API_BASE') ?: 'https://staging.emailtemplate.it/external/render'));
|
|
putenv('EMAILTEMPLATE_API_TOKEN=' . (getenv('EMAILTEMPLATE_API_TOKEN') ?: ''));
|
|
putenv('MAIL_TRANSPORT=' . (getenv('MAIL_TRANSPORT') ?: 'smtp'));
|
|
putenv('MAIL_FROM=' . (getenv('MAIL_FROM') ?: 'no-reply@papa-kind-treff.info'));
|
|
putenv('MAIL_FROM_NAME=' . (getenv('MAIL_FROM_NAME') ?: 'Papa-Kind-Treff'));
|
|
putenv('SMTP_HOST=' . (getenv('SMTP_HOST') ?: ''));
|
|
putenv('SMTP_PORT=' . (getenv('SMTP_PORT') ?: '587'));
|
|
putenv('SMTP_USER=' . (getenv('SMTP_USER') ?: ''));
|
|
putenv('SMTP_PASS=' . (getenv('SMTP_PASS') ?: ''));
|
|
putenv('SMTP_SECURE=' . (getenv('SMTP_SECURE') ?: 'tls'));
|