Debug: log mail() return value in quote response
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
4
api.php
4
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:
|
||||
|
||||
Reference in New Issue
Block a user