From 8ddcaee607f6a879388f148135952e732607457b Mon Sep 17 00:00:00 2001 From: Jukka Lampikoski Date: Mon, 9 Mar 2026 22:20:50 +0200 Subject: [PATCH] Debug: log mail() return value in quote response Co-Authored-By: Claude Opus 4.6 --- api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.php b/api.php index f76c64f..b5678da 100644 --- a/api.php +++ b/api.php @@ -295,9 +295,9 @@ switch ($action) { $headers .= "Reply-To: $email\r\n"; $headers .= "Content-Type: text/plain; charset=UTF-8\r\n"; - @mail($to, $subject, $body, $headers); + $mailSent = mail($to, $subject, $body, $headers); - echo json_encode(['success' => true]); + echo json_encode(['success' => true, 'mail_sent' => $mailSent]); break; default: