diff --git a/db.php b/db.php index 298945e..b353beb 100644 --- a/db.php +++ b/db.php @@ -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, ]);