session_start();
// function
function sendmail($to,$sub,$body,$mailfrom)
{
$headers = 'From: '.$mailfrom." \n";
$headers .= 'MIME-Version: 1.0' ."\n";
$headers .= 'Content-Type: text/HTML; charset=ISO-8859-1' ."\n";
@mail ($to,$sub,$body,$headers);
}
// Function to check whether a given hostName is a valid email
if(isset($_REQUEST['Submit']))
{
if( $_SESSION['image_random_value'] == $_POST['security_code'] && !empty($_SESSION['image_random_value'] ) ) {
// Insert you code for processing the form here, e.g emailing the submission, entering it into a database. // PHP Code for Sending Email will be here
$name=$_REQUEST['name'];
$email=$_REQUEST['email'];
$phone_number=$_REQUEST['phone_number'];
$remarks=$_REQUEST['remarks'];
// Change email address to receive emails
$email_to="mail@sunshineindia.com";
// Specify used email address to send email using html form, could be same as to address
$email_from="mail@sunshineindia.com";
// Subject for the email
$the_subject="General Enquiry";
// Actual form fields
// Replace $variable with the actual form field name. Mind the case ($firstname is not equal to $FirstName)
ob_start(); //Turn on output buffering
?>
| General Enquiry from Sunshineindia.com |
Name |
: |
echo $name; ?> |
Email | : | echo $email; ?> |
Phone Numbers | : | echo $phone_number; ?> |
Remarks | : | echo $remarks; ?> |
//copy current buffer contents into $message variable and delete current output buffer
$message = ob_get_clean();
//send the email
$the_message=$message;
$email_tocc="indics@live.com";
$mail_sent= sendmail($email_tocc, $the_subject, $the_message ,$email_from);
$mail_sent= sendmail($email_to, $the_subject, $the_message ,$email_from);
//header("Location:website_submission_mail.php");?>
// End of email portion
} else {
// Insert your code for showing an error message here
$msg= 'Sorry, you have provided an invalid security code';
}} ?>
Sunshine Tourism Services Pvt. Ltd. : Contact/Enquiry
|
|
|
|
Untitled Document
|
| |
|
|
| |
Contact Us |
|
| Sunshine Tourism Services Pvt.Ltd |
| Add : |
10, Daryaganj |
| |
New Delhi-110002, India |
| Phone : |
+91-11-23246198 |
| Fax : |
+91-11-23277875 |
| Mail : |
tours@sunshineindia.com |
|
| Enquiry Details |
|
|
| |
|
|
|
|
|