From ee699fccf7f3bfdc0f92ad4e8b9ea4e4dc6de726 Mon Sep 17 00:00:00 2001 From: Myron Blair Date: Fri, 29 May 2026 19:01:49 +0000 Subject: [PATCH] Fix CyberMail payload format: flat string for from/to fields --- api/includes/mailer.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/api/includes/mailer.php b/api/includes/mailer.php index c140bd6..3af8dc2 100644 --- a/api/includes/mailer.php +++ b/api/includes/mailer.php @@ -11,11 +11,8 @@ function sendgridSend(string $toEmail, string $toName, string $subject, string $ } $payload = [ - 'from' => [ - 'email' => defined('MAIL_FROM') ? MAIL_FROM : 'noreply@epictravelexpeditions.com', - 'name' => defined('MAIL_FROM_NAME') ? MAIL_FROM_NAME : 'Epic Travel Expeditions', - ], - 'to' => [['email' => $toEmail, 'name' => $toName]], + 'from' => defined('MAIL_FROM') ? MAIL_FROM : 'noreply@epictravelexpeditions.com', + 'to' => $toEmail, 'subject' => $subject, 'html' => $htmlBody, ];