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
parent
d880ee4d7d
commit
a023ed19f6
|
|
@ -58,7 +58,12 @@ class ProcessMailQueue extends Command
|
|||
|
||||
$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)
|
||||
->subject($mail->subject ?? 'Mail');
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue