refactor(email): enhance sender information formatting in email logic
This commit is contained in:
@@ -29,8 +29,9 @@ class EmailChannel
|
|||||||
|
|
||||||
if ($isResendEnabled) {
|
if ($isResendEnabled) {
|
||||||
$resend = Resend::client($settings->resend_api_key);
|
$resend = Resend::client($settings->resend_api_key);
|
||||||
|
$from = "{$settings->smtp_from_name} <{$settings->smtp_from_address}>";
|
||||||
$resend->emails->send([
|
$resend->emails->send([
|
||||||
'from' => $settings->smtp_from_address,
|
'from' => $from,
|
||||||
'to' => $recipients,
|
'to' => $recipients,
|
||||||
'subject' => $mailMessage->subject,
|
'subject' => $mailMessage->subject,
|
||||||
'html' => (string) $mailMessage->render(),
|
'html' => (string) $mailMessage->render(),
|
||||||
|
|||||||
Reference in New Issue
Block a user