mirror of
https://github.com/myronblair/epictravelexpeditions
synced 2026-06-30 09:41:25 -05:00
Fix CyberMail payload format: flat string for from/to fields
This commit is contained in:
@@ -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,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user