File manager - Edit - /home/asiatechinc/public_html/asiatechinc-websites/dragonflygoa.com/enquiry.php
Back
<?php $token = $_GET['token']; $name = $_GET['name']; $email = $_GET['email']; $phone = $_GET['phone']; $datefrom = $_GET['datefrom']; $dateto = $_GET['dateto']; $message = $_GET['message']; $amount = $_GET['amount']; $EmailTo = $email; $Subject = "Enquiry Details From Dragonfly Goa"; // 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;'>Date From</td> "; $Fields .= "<td style='padding:5px;'>".$datefrom."</td>"; $Fields .= "</tr>"; $Fields .= "<tr>"; $Fields .= "<td style='padding:5px;'>Date To</td> "; $Fields .= "<td style='padding:5px;'>".$dateto."</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;'>Message</td>"; $Fields .= "<td style='padding:5px;'>".$message."</td>"; $Fields .= "</tr>"; $Fields .= "<tr>"; $Fields .= "<td style='padding:5px;'>Amount</td>"; $Fields .= "<td style='padding:5px;'>".$amount."</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: '.$EmailTo. "\r\n"; $headers .= "CC: info@gadaboutresorts.com" . "\r\n"; $headers .= "CC: support@asiatech.in" . "\r\n"; $success = mail($EmailTo, $Subject, $Fields, $headers); header("Location:thank-you.php"); echo " THIS IS A TEST "; ?> <script> window.location.href = 'thank-you.php'; </script> ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings