From 24824e2dc3fa1c9b677ff6efa1c4ab7087b15e96 Mon Sep 17 00:00:00 2001 From: Artem Date: Fri, 5 Jun 2026 12:17:18 +0300 Subject: [PATCH] style: add some style 5 (modal form 3) --- index.html | 101 ++++++++++++++++++++++++++++---------------------- send-form.php | 10 +++-- 2 files changed, 63 insertions(+), 48 deletions(-) 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 -- 2.43.0