From d110c93ba9c5e6ddf805c02917ab2882db2c419a Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Fri, 28 Mar 2025 20:44:28 +0100 Subject: [PATCH] refactor(email): enhance sender information formatting in email logic --- app/Notifications/Channels/EmailChannel.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Notifications/Channels/EmailChannel.php b/app/Notifications/Channels/EmailChannel.php index 582d9a1e4..a452ef8dd 100644 --- a/app/Notifications/Channels/EmailChannel.php +++ b/app/Notifications/Channels/EmailChannel.php @@ -29,8 +29,9 @@ class EmailChannel 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(),