Debug: log mail() return value in quote response

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-09 22:20:50 +02:00
parent 3d0215130f
commit 8ddcaee607

View File

@@ -295,9 +295,9 @@ switch ($action) {
$headers .= "Reply-To: $email\r\n"; $headers .= "Reply-To: $email\r\n";
$headers .= "Content-Type: text/plain; charset=UTF-8\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; break;
default: default: