Fix CyberMail payload format: flat string for from/to fields

This commit is contained in:
2026-05-29 19:01:49 +00:00
parent 844167aad4
commit ee699fccf7
+2 -5
View File
@@ -11,11 +11,8 @@ function sendgridSend(string $toEmail, string $toName, string $subject, string $
} }
$payload = [ $payload = [
'from' => [ 'from' => defined('MAIL_FROM') ? MAIL_FROM : 'noreply@epictravelexpeditions.com',
'email' => defined('MAIL_FROM') ? MAIL_FROM : 'noreply@epictravelexpeditions.com', 'to' => $toEmail,
'name' => defined('MAIL_FROM_NAME') ? MAIL_FROM_NAME : 'Epic Travel Expeditions',
],
'to' => [['email' => $toEmail, 'name' => $toName]],
'subject' => $subject, 'subject' => $subject,
'html' => $htmlBody, 'html' => $htmlBody,
]; ];