E-Mail-Versand auf SPF/DKIM-Alignment umstellen

This commit is contained in:
torsten 2026-11-08 19:29:45 +01:00
parent a0e85de7bd
commit 34304d18dd
7 changed files with 251 additions and 16 deletions

View file

@ -174,13 +174,22 @@ class HomeController
. "Antrag im Admin-Bereich ansehen:\n"
. " " . $adminUrl . "\n";
send_mail(
if (!send_mail(
(string) config('app.membership_notify_email'),
'Neuer Mitgliedsantrag: ' . $vorname . ' ' . $nachname,
$body,
'Motorrad-IG <motorradig@aol.com>',
$email
);
)) {
app_log('warning', 'Admin-Benachrichtigung über neuen Mitgliedsantrag fehlgeschlagen', [
'application_id' => $application->id,
'email' => (string) config('app.membership_notify_email'),
]);
} else {
app_log('info', 'Admin-Benachrichtigung über neuen Mitgliedsantrag gesendet', [
'application_id' => $application->id,
'email' => (string) config('app.membership_notify_email'),
]);
}
$applicantBody = "Hallo " . trim($vorname . ' ' . $nachname) . ",\n\n"
. "vielen Dank für deinen Mitgliedsantrag. Wir haben deinen Antrag am "
@ -192,7 +201,7 @@ class HomeController
. "Motorrad-IG\n"
. $baseUrl . "\n";
if (!send_mail($email, 'Dein Mitgliedsantrag bei der Motorrad-IG', $applicantBody, 'Motorrad-IG <motorradig@aol.com>')) {
if (!send_mail($email, 'Dein Mitgliedsantrag bei der Motorrad-IG', $applicantBody, (string) config('mail.reply_to'))) {
app_log('warning', 'Bestätigungs-E-Mail an Antragsteller fehlgeschlagen', [
'application_id' => $application->id,
'email' => $email,