refactor(email): enhance sender information formatting in email logic

This commit is contained in:
Andras Bacsai 2025-03-28 20:44:28 +01:00
parent ebb81aff68
commit d110c93ba9

View file

@ -29,8 +29,9 @@ public function send(SendsEmail $notifiable, Notification $notification): void
if ($isResendEnabled) {
$resend = Resend::client($settings->resend_api_key);
$from = "{$settings->smtp_from_name} <{$settings->smtp_from_address}>";
$resend->emails->send([
'from' => $settings->smtp_from_address,
'from' => $from,
'to' => $recipients,
'subject' => $mailMessage->subject,
'html' => (string) $mailMessage->render(),