diff --git a/index.html b/index.html
index c58b429..2401aea 100644
--- a/index.html
+++ b/index.html
@@ -821,61 +821,72 @@
diff --git a/send-form.php b/send-form.php
index cb988c3..0faedf1 100644
--- a/send-form.php
+++ b/send-form.php
@@ -15,7 +15,7 @@ if (empty($name) || empty($phone)) {
exit;
}
-//$to = "receptionadmin@o-arena.ru"; // ← Измени на свой реальный email!
+//$to = "receptionadmin@o-arena.ru"; // ← Обязательно поменяй на свой реальный email!
$to = "rid89@mail.ru";
$subject = "Новая заявка с сайта OlimpArena";
@@ -29,11 +29,15 @@ $message .= "Дата: " . date('d.m.Y H:i:s') . "\n";
$headers = "From: no-reply@olimparena.aiconversion.ru\r\n";
$headers .= "Reply-To: $email\r\n";
$headers .= "Content-Type: text/plain; charset=utf-8\r\n";
+$headers .= "X-Mailer: PHP/" . phpversion();
if (mail($to, $subject, $message, $headers)) {
echo json_encode(["status" => "success"]);
} else {
- error_log("Mail error: " . print_r(error_get_last(), true));
- echo json_encode(["status" => "error", "message" => "Не удалось отправить письмо"]);
+ error_log("MAIL ERROR: " . print_r(error_get_last(), true));
+ echo json_encode([
+ "status" => "error",
+ "message" => "Не удалось отправить письмо. Администратор уже уведомлён."
+ ]);
}
?>
\ No newline at end of file