hjkhhndndndnd,trt
bnmbertsu,yu,yu,fffffffy,ltdfg
/
home4
/
gofvotmy
/
public_html
/
hotelsuperstar.com
/
Upload FileeE
HOME
<?php require_once "Mail.php"; $from = $_POST["Email"]; if ($from=="") $from="info@hotelsuperstar.com"; $to = "info@hotelsuperstar.com"; $subject = "Hotel Super Star Room Reservation Enquiry : http://www.hotelsuperstar.com"; $body = "<b>Hotel Super Star Room Reservation Enquiry </b><br>"; $body .= "<br>Name: " . $_POST["name"]; $body .= "<br>Room Type: " . $_POST["room_type"]; $body .= "<br>Check in Date: " . $_POST["Date_Checkin"]; $body .= "<br>Check out Date: " . $_POST["Date_Checkout"]; $body .= "<br>Persons Adult: " . $_POST["p_adult"]; $body .= "<br>Persons Children: " . $_POST["p_child"]; $body .= "<br>Number of Rooms: " . $_POST["number_room"]; $body .= "<br>Contact / Mobile: " . $_POST["contact"]; $body .= "<br>Email: " . $_POST["email"]; $redirect = $_POST["redirect"]; $host = "smtp.gmail.com"; $port = "587"; $username = "info@hotelsuperstar.com"; $password = "pass2011*"; $contenttype = "text/html"; $headers = array ('From' => $from, 'To' => $to, 'Subject' => $subject, 'Content-Type' => $contenttype); $smtp = Mail::factory('smtp', array ('host' => $host, 'port' => $port, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $headers, $body); if (PEAR::isError($mail)) { echo("<p>" . $mail->getMessage() . "</p>"); } else { //echo("<p>Message successfully sent!</p>"); header("Location: $redirect"); exit; } ?>