This commit is contained in:
2025-12-28 02:15:11 +01:00
parent 5b05e79700
commit 7a3089668f

View File

@@ -137,6 +137,14 @@ final class Mailer
$subject = $tpl['subject'] ?? 'Papa-Kind-Treff'; $subject = $tpl['subject'] ?? 'Papa-Kind-Treff';
$html = $tpl['html'] ?? ''; $html = $tpl['html'] ?? '';
$this->log('mail_rendered_template', [
'template_key' => $templateKey,
'template_id' => $resolvedId,
'subject' => $subject,
'html_len' => strlen((string)$html),
'html_preview' => substr((string)$html, 0, 200),
]);
$transport = getenv('MAIL_TRANSPORT') ?: 'mail'; $transport = getenv('MAIL_TRANSPORT') ?: 'mail';
$fromEmail = getenv('MAIL_FROM') ?: 'no-reply@' . $this->app->config()->primaryDomain; $fromEmail = getenv('MAIL_FROM') ?: 'no-reply@' . $this->app->config()->primaryDomain;
$fromName = getenv('MAIL_FROM_NAME') ?: 'Papa-Kind-Treff'; $fromName = getenv('MAIL_FROM_NAME') ?: 'Papa-Kind-Treff';