File manager - Edit - /home/asiatechinc/public_html/asiatech-websites/desertdreamholidayresort.com/mail.php
Back
<?php $name = $_POST["name"]; $email = $_POST["email"]; $phone = $_POST["phone"]; $subject = $_POST["subject"]; $message = $_POST["message"]; $EmailTo = "rajasthandesertsafarisam@gmail.com"; $Subject = " Enquiry From Desert Dreamland Resort"; // prepare email body text $Fields .= "<table border='2px' style='border-collapse:collapse; width:100%;'>"; $Fields .= "<tr>"; $Fields .= "<td style='padding:5px;'> Name</td>"; $Fields .= "<td style='padding:5px;'>".$name."</td>"; $Fields .= "</tr>"; $Fields .= "<tr>"; $Fields.= "<td style='padding:5px;'>Email</td>"; $Fields .= "<td style='padding:5px;'>".$email."</td>"; $Fields .= "</tr>"; $Fields .= "<tr>"; $Fields .= "<td style='padding:5px;'>Phone</td> "; $Fields .= "<td style='padding:5px;'>".$phone."</td>"; $Fields .= "</tr>"; $Fields .= "<tr>"; $Fields .= "<td style='padding:5px;'>Sub</td> "; $Fields .= "<td style='padding:5px;'>".$subject."</td>"; $Fields .= "</tr>"; $Fields .= "<tr>"; $Fields .= "<td style='padding:5px;'>Message</td>"; $Fields .= "<td style='padding:5px;'>".$message."</td>"; $Fields .= "</tr>"; $Fields .= "</table>"; // // send email $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; $headers .= 'From: '.$email. "\r\n"; $success = mail($EmailTo, $Subject, $Fields, $headers); header("Location:thank-you.php"); echo " THIS IS A TEST "; ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings