From 4685c85ead16d4a6b634aea57eab64c8093bc986 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Sat, 27 Dec 2025 00:41:52 +0100 Subject: [PATCH] first send --- config/prod/emailtemplates.php | 14 +++++++++++++- src/App/Mailer.php | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/config/prod/emailtemplates.php b/config/prod/emailtemplates.php index 95079c3..9cdecf4 100644 --- a/config/prod/emailtemplates.php +++ b/config/prod/emailtemplates.php @@ -4,4 +4,16 @@ $emailtemplates = [ 'registration_welcome' => 'Template 1', 'registration_resend_code' => 'template mit block', 'password_reset' => 'template mit block', -]; \ No newline at end of file +]; + +// Hinweis zu ENV-Variablen für den Versand (werden außerhalb dieses Files gesetzt): +// EMAILTEMPLATE_API_BASE = https://... (optional externe Template-API, wie im retool-Sender) +// EMAILTEMPLATE_API_TOKEN = +// MAIL_TRANSPORT = mail | smtp +// MAIL_FROM = no-reply@papa-kind-treff.info +// MAIL_FROM_NAME = Papa-Kind-Treff +// SMTP_HOST = smtp.example.com +// SMTP_PORT = 587 +// SMTP_USER = +// SMTP_PASS = +// SMTP_SECURE = tls | ssl | none diff --git a/src/App/Mailer.php b/src/App/Mailer.php index af0df3d..523f7e0 100644 --- a/src/App/Mailer.php +++ b/src/App/Mailer.php @@ -11,7 +11,7 @@ final class Mailer { $env = $this->app->config()->env; $root = __DIR__ . '/../../config/emailtemplates.php'; - $envPath = __DIR__ . "/../../config/{$env}/emailtemplates.php"; + $envPath = __DIR__ . "/../../config/emailtemplates.php"; $file = is_file($root) ? $root : $envPath; $emailtemplates = []; if (is_file($file)) {