contact form

This commit is contained in:
Bognar 2026-03-28 12:22:08 +01:00
parent a5db5eb5ad
commit 226f304b63
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ header("Content-Type: application/json");
// --- CONFIGURATION --- // --- CONFIGURATION ---
$secretKey = "6LfqD1osAAAAAEbpEApPkiQUbyjdKYx2OvhY2XTk"; // reCAPTCHA v3 Secret Key $secretKey = "6LfqD1osAAAAAEbpEApPkiQUbyjdKYx2OvhY2XTk"; // reCAPTCHA v3 Secret Key
$toEmail = "bognar.szilard83@gmail.com"; $toEmail = "info@skyflytravel.hu";
$minScore = 0.5; $minScore = 0.5;
$expectedAction = "contact_form"; $expectedAction = "contact_form";
// --------------------- // ---------------------
@ -113,7 +113,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
$headers = "MIME-Version: 1.0" . "\r\n"; $headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= "From: <noreply@skyflytravel.hu>" . "\r\n"; $headers .= "From: <kapcsolat@skyflytravel.hu>" . "\r\n";
if ($email) { if ($email) {
$headers .= "Reply-To: $email" . "\r\n"; $headers .= "Reply-To: $email" . "\r\n";
} }