fix: Verifizierungs-Mail via hello@aziros.com statt Fallback-Mailer senden

ProcessMailQueue verwendete Mail::html() ohne Mailer-Angabe, was den Default-
Mailer (smtp = info@nimu.li) nutzte. Jetzt: auth.* → hello-Mailer, Rest → system.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main
boban 2026-04-20 19:34:11 +02:00
parent d880ee4d7d
commit a023ed19f6
1 changed files with 6 additions and 1 deletions

View File

@ -58,7 +58,12 @@ class ProcessMailQueue extends Command
$html = view('emails.' . $mail->template, $mail->meta)->render(); $html = view('emails.' . $mail->template, $mail->meta)->render();
Mail::html($html, function ($message) use ($mail) { $mailerName = match(true) {
str_starts_with($mail->template, 'auth.') => 'hello',
default => 'system',
};
Mail::mailer($mailerName)->html($html, function ($message) use ($mail) {
$message->to($mail->to) $message->to($mail->to)
->subject($mail->subject ?? 'Mail'); ->subject($mail->subject ?? 'Mail');
}); });