Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link href="img/style.css" rel="stylesheet" type="text/css">
- <title>Reservation Request submitted</title>
- <script type="text/JavaScript" src="img/erics.js"></script>
- <style type="text/css">
- <!--
- .style2 {color: #339966}
- -->
- </style>
- </head>
- <style type="text/css">
- <!--
- body {
- background-color: #E3F2F9;
- }
- .style1 {color: #FF0000}
- -->
- </style>
- <script type="text/JavaScript">
- <!--
- function MM_swapImgRestore() { //v3.0
- var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
- }
- function MM_preloadImages() { //v3.0
- var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
- var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
- if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
- }
- function MM_findObj(n, d) { //v4.01
- var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
- d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
- if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
- for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
- if(!x && d.getElementById) x=d.getElementById(n); return x;
- }
- function MM_swapImage() { //v3.0
- var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
- if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
- }
- //-->
- </script>
- </head>
- <body onLoad="MM_preloadImages('img/C1.gif','img/TA1.gif','img/UL1.gif','img/ABT1.gif','img/H1.gif')">
- <div align="center">
- <table border="0" width="780" id="table1" cellspacing="0" cellpadding="0">
- <tr>
- <td valign="top" bgcolor="#FFFFFF">
- <img border="0" src="img/LOGO.gif" width="327" height="92"></td>
- <td align="right" valign="bottom" bgcolor="#FFFFFF"><a href="index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image9','','img/H1.gif',1)"><img src="img/HO.gif" name="Image9" width="40" height="29" border="0"></a><a href="abt.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','img/ABT1.gif',1)"><img src="img/ABT0.gif" name="Image8" width="62" height="29" border="0"></a><a href="links.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image7','','img/UL1.gif',1)"><img src="img/UL0.gif" name="Image7" width="79" height="29" border="0"></a><a href="travel.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image6','','img/TA1.gif',1)"><img src="img/TA0.gif" name="Image6" width="89" height="29" border="0"></a><a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','img/C1.gif',1)" href="mailto:vacationstation@shaw.ca"><img src="img/CO.gif" name="Image5" width="65" height="29" border="0"></a><a href="contact.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','img/C1.gif',1)"><img src="img/BLANK.gif" width="11" height="1" border="0"></a> </td>
- </tr>
- <tr>
- <td valign="top" colspan="2">
- <table width="780" border="0" align="center" cellpadding="0" cellspacing="0" id="table2" height="416">
- <tr>
- <td width="164" valign="top" bgcolor="#FFFFFF"><map name="FPMap0">
- <area href="ski.htm" shape="rect" coords="39, 34, 114, 59">
- <area href="asp.htm" shape="rect" coords="38, 63, 132, 95">
- <area href="tc.htm" shape="rect" coords="38, 100, 126, 118">
- <area href="cyc.htm" shape="rect" coords="38, 124, 126, 145">
- <area href="villas.htm" shape="rect" coords="37, 149, 117, 169">
- <area href="req.htm" shape="rect" coords="39, 199, 119, 231">
- <area href="spa.htm" shape="rect" coords="37, 173, 81, 194">
- </map>
- <img src="img/left.gif" width="164" height="265" usemap="#FPMap0" border="0"><br>
- <img border="0" src="img/p-quote.jpg" width="164" height="123"></td>
- <td width="604" bgcolor="#FFFFFF" align="left" valign="top">
- <table border="0" width="100%" id="table3" cellspacing="0" cellpadding="13">
- <tr>
- <td align="right">
- <b><i>
- <font face="Arial, Helvetica, sans-serif" size="4" color="#339966">
- RESERVATIONS REQUEST SUBMITTED </font></i></b></td>
- </tr>
- <tr>
- <td>
- <table cellSpacing="0" cellPadding="0" width="100%" border="0" id="table4">
- <tr>
- <td> </td>
- </tr>
- <tr>
- <td align="center"><font face="Arial, Helvetica, sans-serif" size="3"><b><font color="#FF3333">THANK
- YOU </font></b></font></td>
- </tr>
- <tr>
- <td align="center"><span class="style2"><font size="2">Thank you for your interest in using the Vacation Station
- to book your vacation. We will respond to your request as soon as possible,
- usually within 24 hours.</font></span></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- <td width="12" align="left" valign="top" bgcolor="#FFFFFF">
- <img border="0" src="img/BLANK.gif" width="13" height="1"></td>
- </tr>
- </table> </td>
- </tr>
- <tr>
- <td height="53" colspan="2" align="center" valign="middle" bgcolor="#276631"><img src="img/CPY.gif" width="302" height="27"> </td>
- </tr>
- <tr>
- <td height="53" colspan="2" align="center" valign="middle" bgcolor="#FFFFFF">
- <a target="_blank" href="booking.htm">Booking </a> <span class="style1">|</span>
- <a target="_blank" href="privacy.htm">Privacy Policy</a> </td>
- </tr>
- </table>
- </div>
- <?
- function authSendEmail($from, $fromname, $to, $subject, $message, $fname) {
- $smtpServer = "mail.tlisoftware.com";
- $port = "25";
- $timeout = "30";
- $password = "11111111";
- $username = "reservation@tlisoftware.com";
- $localhost = "localhost";
- $newLine = "\r\n";
- /* * * * CONFIGURATION END * * * * */
- //Connect to the host on the specified port
- $smtpConnect = fsockopen($smtpServer, $port, $errno, $errstr, $timeout);
- $smtpResponse = fgets($smtpConnect, 515);
- if(empty($smtpConnect)) {
- $output = "Failed to connect: $smtpResponse";
- return $output;
- } else {
- $logArray['connection'] = "Connected: $smtpResponse";
- }
- //Say Hello to SMTP
- fputs($smtpConnect, "HELO $localhost" . $newLine);
- $smtpResponse = fgets($smtpConnect, 515);
- $logArray['heloresponse'] = "$smtpResponse";
- //Request Auth Login
- fputs($smtpConnect,"AUTH LOGIN" . $newLine);
- $smtpResponse = fgets($smtpConnect, 515);
- $logArray['authrequest'] = "$smtpResponse";
- //Send user
- fputs($smtpConnect, base64_encode($username) . $newLine);
- $smtpResponse = fgets($smtpConnect, 515);
- $logArray['authpassword'] = "$smtpResponse";
- //Send password
- fputs($smtpConnect, base64_encode($password) . $newLine);
- $smtpResponse = fgets($smtpConnect, 515);
- $logArray['authpassword'] = "$smtpResponse";
- //Email From
- fputs($smtpConnect, "MAIL FROM:<$from>" . $newLine);
- $smtpResponse = fgets($smtpConnect, 515);
- $logArray['mailfromresponse'] = "$smtpResponse";
- //Email To
- fputs($smtpConnect, "RCPT TO:<$to>" . $newLine);
- $smtpResponse = fgets($smtpConnect, 515);
- $logArray['mailtoresponse'] = "$smtpResponse";
- //The Email
- fputs($smtpConnect, "DATA" . $newLine);
- $smtpResponse = fgets($smtpConnect, 515);
- $logArray['data1response'] = "$smtpResponse";
- //Construct Headers
- $headers = "MIME-Version: 1.0" . $newLine;
- //$headers .= "Content-type: text/html; charset=iso-8859-1" . $newLine;
- $headers .= 'Content-Type: multipart/mixed; boundary="----=_MyPart-1A2B3C"' . $newLine;
- $headers .= "To: $nameto <$to>" . $newLine;
- $headers .= "From: $fromname <$from>" . $newLine;
- $message = 'Content-Type: text/html; charset="iso-8859-1"'.$newLine.'Content-Transfer-Encoding: quoted-printable'.$newLine.$newLine.$message;
- $message = '------=_MyPart-1A2B3C'.$newLine.$message;
- if ( $fname != '' ) {
- list($file, $ext) = explode('#',$fname);
- $encoded = chunk_split(base64_encode(file_get_contents($file)));
- $message .= $newLine.'------=_MyPart-1A2B3C' . $newLine;
- $message .= 'Content-Type: application/octet-stream; name="';
- $message .= "attachment.".$ext.'"'.$newLine;
- $message .= 'Content-Transfer-Encoding: base64'.$newLine.'Content-Disposition: attachment; filename="';
- $message .= "attachment.".$ext.'"'.$newLine.$newLine;
- $message .= $encoded . $newLine;
- }
- $message .= $newLine.'------=_MyPart-1A2B3C--';
- fputs($smtpConnect, "To: $to\nFrom: $from\r\nSubject: $subject\r\n$headers\r\n\r\n$message\r\n\r\n.\r\n");
- $smtpResponse = fgets($smtpConnect, 515);
- $logArray['data2response'] = "$smtpResponse";
- // Say Bye to SMTP
- fputs($smtpConnect,"QUIT" . $newLine);
- $smtpResponse = fgets($smtpConnect, 515);
- $logArray['quitresponse'] = "$smtpResponse";
- return "@".join("<br />",$logArray);
- }
- $fname = '';
- $msg="<HTML><br><b>First Name :</b>".$_POST['FirstName'];
- $msg.="<br><b>Last Name : </b>".$_POST['LastName'];
- $msg.="<br><b>Address : </b>".$_POST['address'];
- $msg.="<br><b>Phone No. : </b>".$_POST['phone'];
- $msg.="<br><b>FAX : </b>".$_POST['fax'];
- $msg.="<br><b>Email ID :</b>".$_POST['email'];
- $msg.="<br><b>Destination : </b>".$_POST['destination'];
- $msg.="<br><b>Departure City : </b>".$_POST['Departure_city'];
- $msg.="<br><b>Package : </b>".$_POST['package'];
- $msg.="<br><b>Departure Date : </b>".$_POST['depart_date'];
- $msg.="<br><b>Return Date: </b>".$_POST['return_date'];
- $msg.="<br><b>Travel Party: </b>";
- $msg.="<br><b># of Adults : </b>".$_POST['adults'];
- $msg.="<br><b># of Children : </b>".$_POST['children'];
- $msg.="<br><b>Ages : </b>".$_POST['Ages'];
- $msg.="<br><br><b>Require cancellation and medical insurance : </b>".$_POST['insurance'];
- $msg.="<br><b>Method of payment : </b>".$_POST['payment'];
- $msg.="<br><b>Comments : </b>".$_POST['comments']."</HTML>";;
- authSendEmail("reservation@tlisoftware.com", "Reservation", "james@thevacationstation.com", "Reservation Request Form", $msg, $fname);
- ?>
- </body>
- </html>
Add Comment
Please, Sign In to add comment