From 77844135dc9c3b7e12511cf6d1757c68cc0918eb Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Sat, 27 Dec 2025 01:03:23 +0100 Subject: [PATCH] asads --- config/prod/emailtemplates.php | 36 ++++++++++++++++++------------- config/staging/emailtemplates.php | 36 ++++++++++++++++++------------- 2 files changed, 42 insertions(+), 30 deletions(-) diff --git a/config/prod/emailtemplates.php b/config/prod/emailtemplates.php index 72de593..2da54cb 100644 --- a/config/prod/emailtemplates.php +++ b/config/prod/emailtemplates.php @@ -1,20 +1,26 @@ 'Neues Template neue Logik', - 'registration_welcome' => 'Template 1', + 'registration_confirm' => 'Neues Template neue Logik', + 'registration_welcome' => 'Template 1', 'registration_resend_code' => 'template mit block', - 'password_reset' => 'template mit block', + 'password_reset' => 'template mit block', ]; -// Hinweis zu ENV-Variablen für den Versand (werden außerhalb dieses Files gesetzt): -EMAITEMPLATE_SNEDER_TOKEN = 'DWFE3f5NQTZH5phtVrOWRf4BL3bmrrPRk1LUkorAwPwjttfcFgzkhe4LtL1n3jYA'; -EMAILTEMPLATE_API_BASE = 'https://staging.emailtemplate.it/external/render'; -EMAILTEMPLATE_API_TOKEN = 'qYLV9OLOJ48WPs0CLrnOWpkok1o1wRN_kGsdMVzumzPEYQP-rHxhnn0YlSWGW5hH'; -MAIL_TRANSPORT = 'smtp'; -MAIL_FROM = 'no-reply@papa-kind-treff.info'; -MAIL_FROM_NAME = 'Papa-Kind-Treff'; -SMTP_HOST = 'w0207fd0.kasserver.com'; -SMTP_PORT = 465; -SMTP_USER = 'no-reply@papa-kind-treff.info'; -SMTP_PASS = '8*4gf1f)#öXk-OdÄöw#0'; -SMTP_SECURE = 'ssl'; +/** + * 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')); diff --git a/config/staging/emailtemplates.php b/config/staging/emailtemplates.php index 72de593..2da54cb 100644 --- a/config/staging/emailtemplates.php +++ b/config/staging/emailtemplates.php @@ -1,20 +1,26 @@ 'Neues Template neue Logik', - 'registration_welcome' => 'Template 1', + 'registration_confirm' => 'Neues Template neue Logik', + 'registration_welcome' => 'Template 1', 'registration_resend_code' => 'template mit block', - 'password_reset' => 'template mit block', + 'password_reset' => 'template mit block', ]; -// Hinweis zu ENV-Variablen für den Versand (werden außerhalb dieses Files gesetzt): -EMAITEMPLATE_SNEDER_TOKEN = 'DWFE3f5NQTZH5phtVrOWRf4BL3bmrrPRk1LUkorAwPwjttfcFgzkhe4LtL1n3jYA'; -EMAILTEMPLATE_API_BASE = 'https://staging.emailtemplate.it/external/render'; -EMAILTEMPLATE_API_TOKEN = 'qYLV9OLOJ48WPs0CLrnOWpkok1o1wRN_kGsdMVzumzPEYQP-rHxhnn0YlSWGW5hH'; -MAIL_TRANSPORT = 'smtp'; -MAIL_FROM = 'no-reply@papa-kind-treff.info'; -MAIL_FROM_NAME = 'Papa-Kind-Treff'; -SMTP_HOST = 'w0207fd0.kasserver.com'; -SMTP_PORT = 465; -SMTP_USER = 'no-reply@papa-kind-treff.info'; -SMTP_PASS = '8*4gf1f)#öXk-OdÄöw#0'; -SMTP_SECURE = 'ssl'; +/** + * 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'));