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 @@ 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(),