File manager - Edit - /home/asiatechinc/public_html/asiatech-websites/sobhacentral-grpremium.com/mail2.php
Back
<?php if ($_SERVER["REQUEST_METHOD"] !== "POST") { header("Location: thank-you.html"); exit; } /* Anti-spam check */ if (!empty($_POST['url'])) { exit; } /* Safe values */ $name = htmlspecialchars($_POST['name'] ?? ''); $email = htmlspecialchars($_POST['email'] ?? ''); $phone = htmlspecialchars($_POST['phone'] ?? ''); $message = nl2br(htmlspecialchars($_POST['message'] ?? '')); $to = "grpremiumproperty@gmail.com"; // CHANGE THIS $subject = "New Lead Received – Sobha Central"; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type:text/html;charset=UTF-8\r\n"; $headers .= "From: Website <no-reply@yourdomain.com>\r\n"; $body = " <table width='100%' cellpadding='10' cellspacing='0' style='border:1px solid #ddd;font-family:Arial;font-size:14px'> <tr style='background:#f5f5f5'><th colspan='2'>New Lead Received – Sobha Central</th></tr> <tr><td><strong>Name</strong></td><td>$name</td></tr> <tr><td><strong>Email</strong></td><td>$email</td></tr> <tr><td><strong>Phone</strong></td><td>$phone</td></tr> <tr><td><strong>Message</strong></td><td>$message</td></tr> </table> "; mail($to, $subject, $body, $headers); /* Redirect */ header("Location: thank-you.html"); exit; ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings