File manager - Edit - /home/meharhashir55/passivemrbot/contact-form-handler.php
Back
<?php // (Replace with your actual email address) $to = "your_email@example.com"; $subject = "New Contact Form Submission"; $name = $_POST["name"]; $email = $_POST["email"]; $message = $_POST["message"]; $headers = "From: " . $email . "\r\n"; $headers .= "Reply-To: " . $email . "\r\n"; // Basic email validation (you might want to do more robust validation) if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { echo "Invalid email format"; } else { if (mail($to, $subject, $message, $headers)) { echo "Thank you for your message!"; } else { echo "Error sending email."; } } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.24 | Generation time: 0.14 |
proxy
|
phpinfo
|
Settings