/
/
home
/
u523034047
/
domains
/
dreamdoorz.in
/
public_html
Server: in-mum-web1112.main-hosting.eu (62.72.28.111)
You: 216.73.216.60
PHP 8.3.16
Dir:
/home/u523034047/domains/dreamdoorz.in/public_html
Edit:
/home/u523034047/domains/dreamdoorz.in/public_html/mail.php
<?php if ($_SERVER["REQUEST_METHOD"] == "POST") { // Bot Check if(!empty($_POST['form_botcheck'])){ die("Bot detected!"); } // Sanitize Inputs $name = htmlspecialchars(trim($_POST['form_name'])); $phone = htmlspecialchars(trim($_POST['form_phone'])); $country = htmlspecialchars(trim($_POST['form_country'])); // Validation if(empty($name) || empty($phone) || empty($country)){ die("All fields are required."); } // Your receiving email $to = "info@dreamdoorz.in"; // 👈 Yaha apna email daalein $subject = "New Inquiry From Website"; $message = " You have received a new inquiry: Name: $name Phone: $phone Country: $country "; $headers = "From: no-reply@dreamdoorz.in\r\n"; $headers .= "Reply-To: no-reply@dreamdoorz.in\r\n"; $headers .= "Content-Type: text/plain; charset=UTF-8\r\n"; if(mail($to, $subject, $message, $headers)){ echo "<script>alert('Thank you! We will contact you soon.'); window.location.href='index.php';</script>"; } else { echo "Something went wrong. Please try again."; } } else { echo "Invalid Request."; } ?>
Ukuran: 1.2 KB