first send

This commit is contained in:
2025-12-27 00:41:52 +01:00
parent 93a6487ac0
commit 4685c85ead
2 changed files with 14 additions and 2 deletions

View File

@@ -5,3 +5,15 @@ $emailtemplates = [
'registration_resend_code' => 'template mit block',
'password_reset' => 'template mit block',
];
// 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 = <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 = <user>
// SMTP_PASS = <pass>
// SMTP_SECURE = tls | ssl | none

View File

@@ -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)) {