mirror of
https://github.com/myronblair/parkerslingshotrentals
synced 2026-06-30 17:50:31 -05:00
Fix CyberMail payload format: flat string for from/to fields
This commit is contained in:
@@ -65,8 +65,8 @@ function sendEmail(string $to, string $toName, string $subject, string $html): b
|
||||
$apiKey = defined('CYBERMAIL_API_KEY') ? CYBERMAIL_API_KEY : '';
|
||||
if (!$apiKey || strpos($apiKey, 'YOUR_KEY') !== false) return false;
|
||||
$payload = json_encode([
|
||||
'from' => ['email' => MAIL_FROM, 'name' => MAIL_FROM_NAME],
|
||||
'to' => [['email' => $to, 'name' => $toName]],
|
||||
'from' => MAIL_FROM,
|
||||
'to' => $to,
|
||||
'subject' => $subject,
|
||||
'html' => $html,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user