Please look at the script below. For some reason, the data is being collected okay but the emails are not being sent. I am not a perl/php/cgi guy so i am hoping you can figure out why this is not working:
#!/usr/bin/perl
##########################
##########
##########
##########
##########
##########
#
# GET "POST" ENVIRONMENT VARIABLES
$mailprogram = "/usr/sbin/sendmail -t";
@required = ('name','email');
$mymail = "user1\@sampleemail2.com";
$log = "shantykhqbase.txt";
%required_form_array =('name', 'Name',
'company', 'Company',
'address', 'Address',
'city', 'City',
'state', 'State',
'phone', 'Phone',
'email', 'E-mail',
'type_info', 'Type of Information needed',
'type_event', 'Type of Event',
'num_guests', '# of Guests in your group',
'num_rooms', '# of Sleeping Rooms you require',
'how_heard', 'How you heard about us',
'time', 'Time of reservation desired',
'num_guest', '# of Guests in your party',
'hotel_guest', 'If you will be staying at the Hotel');
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
@pairs = split(/&/, $buffer);
foreach $pair (@pairs) {
($name, $value) = split(/=/, $pair);
$value =~ s/%([a-fA-F0-9][a-fA-F0-9]
)/pack("C"
, hex($1))/eg; # Convert text
$value =~ s/<!--(.|\n)*-->//g;
$value =~ s/~!/ ~!/g;
$value =~ s|\n|--|g;
$value =~ s/\r//g; # remove hard returns
$value =~ tr/+/ /;
if($FORM{$name})
{
$FORM{$name} .= "\t$value";
}
else
{
$FORM{$name} = $value;
}
}
$Input_email = $FORM{email};
$subject = $FORM{subject};
$hotel = $FORM{hotel};
$imass = $FORM{imass};
$email = $FORM{email};
$name = $FORM{name};
$phone = $FORM{phone};
$address = $FORM{address};
$city = $FORM{city};
$state = $FORM{state};
$zip = $FORM{zip};
$phone = $FORM{phone};
$country = $FORM{country};
$type_info = $FORM{type_info};
$how_heard = $FORM{how_heard};
$comments = $FORM{comments};
$sendinfo = $FORM{sendinfo};
$visited = $FORM{visited};
$golf_frequency = $FORM{golf_frequency};
$travel_distance = $FORM{travel_distance};
$skiparty = $FORM{skiparty};
$skireference = $FORM{skireference};
$getdate = `date +"%D"`;
chomp ($getdate);
if ($type_info eq "Package Information" || $type_info eq "Reservation Information")
{
$to = "user2\@sampleemail.com";
}
elsif ($type_info eq "Golf")
{
$to = "user3\@sampleemail.com";
}
elsif ($type_info eq "Spa")
{
$to = "user4\@sampleemail.com";
}
elsif ($type_info eq "Ski")
{
$to = "user5\@sampleemail.com";
}
elsif ($type_info eq "Dining/Entertainment")
{
$to = "user6\@sampleemail.com";
}
elsif ($type_info eq "Transportion Information")
{
$to = "user7\@sampleemail.com";
}
elsif ($type_info eq "Concierge Service")
{
$to = "user8\@sampleemail.com";
}
elsif ($type_info eq "Lost Article Recovery")
{
$to = "user9\@sampleemail.com";
}
elsif ($type_info eq "Hotel Receipt" || $type_info eq "Billing Information")
{
$to = "user10\@sampleemail.com";
}
elsif ($type_info eq "Complaint Acknowledgement")
{
$to = "user11\@sampleemail.com";
}
elsif ($type_info eq "Employment Information")
{
$to = "user12\@sampleemail.com";
}
elsif ($type_info eq "PR")
{
$to = "user13\@sampleemail.com";
}
elsif ($type_info eq "Property Owners Information" || $type_info eq "sample site Club Information")
{
$to = "user14\@sampleemail.com";
}
elsif ($type_info eq "Children's Programs" || $type_info eq "Recreation/Activities")
{
$to = "user15\@sampleemail.com";
}
else {
$to = "user1\@sampleemail2.com";
}
# ERROR TRAPS
if ($email) {
$email =~ s/\+/ /g;
@Email = split(/@/, $email);
$EmailPrt1 = @Email[0];
$EmailPrt2 = @Email[1];
@EmailPrt2 = split(/\./, $EmailPrt2);
$EmailPrt2 = @EmailPrt2[0];
$EmailPrt3 = @EmailPrt2[1];
if (($email =~ / /) || (!$EmailPrt2) || (!$EmailPrt3)) {
&PRINT_Error($errmsg = " The <b>E-mail address</b> you entered does not appear to be valid.<br><br>"); exit;
}
}
# Check for all required fields
foreach $check(@required) {
unless ($FORM{$check}) {
&PRINT_Error($errmsg = " It seems you forgot to fill in the following field...<ul><li><b>$requir
ed_form_ar
ray{$check
}</b></ul>
"); exit;
}
}
sub PRINT_Error {
print "Content-type: text/html\n\n";
print <<"PrintToBrowser";
<html>
<head>
<title>sample site</title>
<SCRIPT LANGUAGE="JavaScript" src="
http://www.samplesite.com/fullday.js"></S
CRIPT>
<LINK REL="stylesheet" HREF="
http://www.samplesite.com/stylegrnd.css"
TYPE="TEXT/CSS">
</head>
<body>
<center>
<table width="840" cellpadding="0" cellspacing="0"><tr height="22">
<td class="credit"><a class="btnav" href="
http://www.samplesite.com/index.html">Ho
me</a></td
><td></td>
<td class="credit" align="right"><a class="btnav" href="
http://68.178.180.117/mtcreek/login.htm"
title="sample site Club Members" target="afil">CLUB MEMBERS</a> |
<a class="btnav" href="
http://68.xxx.xxx.xxx/po/login.htm" title="sample site Property Owners" class="btnav" target="afil">PROPERTY OWNERS</a></td></tr></tabl
e>
<table width="840" cellpadding="0" cellspacing="0" class="maintable"><tr height="120" class="topTable"><td class="main" colspan="4"><table width="100%" cellpadding="0" cellspacing="0"><tr><Td width="15"></Td><td class="main" width="212"><a href="
http://www.samplesite.com/index.html"><i
mg src="
http://www.samplesite.com/images/logodk.gif" alt="sample site Resort & Club" width="212" height="105" border="0" /></a></td>
<td class="main" valign="top"><img src="
http://www.samplesite.com/images/topmorecrop.gif" width="397" height="19" vspace="10" hspace="30"/>
<br /></td></tr></table></td><
/tr>
<tr height="400"><td width="185" class="navTable" valign="top">
<!-- nav -->
<table cellpadding="0" cellspacing="0" width="185" class="navtd">
<tr height="22"><td class="main"></td></tr>
<tr height="1"><td bgcolor="#ffffff"></td></t
r>
<tr height="20"><td valign="middle" class="bttdnav" onmouseover="this.classNam
e='bttdon'
" onmouseout="this.className
='bttdnav'
" style=cursor:hand name="loc" onclick="window.open('
http://www.secure-res.com/res/vn2/checka.asp?hotelid=xxxx','_top');">
HOTEL RESERVATIONS</td></tr>
<tr height="1"><td bgcolor="#ffffff"></td></t
r>
<tr height="2"><td></td></tr>
<tr height="1"><td bgcolor="#ffffff"></td></t
r>
<tr height="20"><td valign="middle" class="bttdnav" onmouseover="this.classNam
e='bttdon'
" onmouseout="this.className
='bttdnav'
" style=cursor:hand name="loc" onclick="window.open('
http://www.secure-res.com/res/vn2/listp.asp?id=xxxx','_top');">
Specials & Packages</td></tr>
<tr height="1"><td bgcolor="#ffffff"></td></t
r>
<tr height="10"><td></td></tr>
<tr height="18"><td valign="middle" class="navoff" onmouseover="this.classNam
e='navon'"
onmouseout="this.className
='navoff'"
style=cursor:hand name="loc" onclick="window.open('
http://www.samplesite.com/villages/index.html','_top')
;">
The Villages</td></tr>
<tr height="2"><td></td></tr>
<tr height="18"><td valign="middle" class="navoff" onmouseover="this.classNam
e='navon'"
onmouseout="this.className
='navoff'"
style=cursor:hand name="loc" onclick="window.open('
http://www.samplesite.com/guestrooms/index.html','_top');">
Guest Rooms & Amenities</td></tr>
<tr height="2"><td></td></tr>
<tr height="18"><td valign="middle" class="navoff" onmouseover="this.classNam
e='navon'"
onmouseout="this.className
='navoff'"
style=cursor:hand name="loc" onclick="window.open('
http://www.samplesite.com/dining/index.html','_top');"
>
Dining & Entertainment</td></tr>
<tr height="2"><td></td></tr>
<tr height="18"><td valign="middle" class="navoff" onmouseover="this.classNam
e='navon'"
onmouseout="this.className
='navoff'"
style=cursor:hand name="loc" onclick="window.open('
http://www.samplesite.com/golf/index.html','_top');">
Golf Courses</td></tr>
<tr height="2"><td></td></tr>
<tr height="18"><td valign="middle" class="navoff" onmouseover="this.classNam
e='navon'"
onmouseout="this.className
='navoff'"
style=cursor:hand name="loc" onclick="window.open('
http://www.samplesite.com/winter/index.html','_top');"
>
Snowsports</td></tr>
<tr height="2"><td></td></tr>
<tr height="18"><td valign="middle" class="navoff" onmouseover="this.classNam
e='navon'"
onmouseout="this.className
='navoff'"
style=cursor:hand name="loc" onclick="window.open('
http://www.samplesite.com/spa/index.html','_top');">
Spa & Fitness</td></tr>
<tr height="2"><td></td></tr>
<tr height="18"><td valign="middle" class="navoff" onmouseover="this.classNam
e='navon'"
onmouseout="this.className
='navoff'"
style=cursor:hand name="loc" onclick="window.open('
http://www.samplesite.com/recreation/index.html','_top');">
Recreation & Activities</td></tr>
<tr height="2"><td></td></tr>
<tr height="18"><td valign="middle" class="navoff" onmouseover="this.classNam
e='navon'"
onmouseout="this.className
='navoff'"
style=cursor:hand name="loc" onclick="window.open('
http://www.samplesite.com/family/index.html','_top');"
>
Family Programs</td></tr>
<tr height="2"><td></td></tr>
<tr height="18"><td valign="middle" class="navoff" onmouseover="this.classNam
e='navon'"
onmouseout="this.className
='navoff'"
style=cursor:hand name="loc" onclick="window.open('
http://www.samplesite.com/events/index.html','_top');"
>
Meetings & Events</td></tr>
<tr height="2"><td></td></tr>
<tr height="18"><td valign="middle" class="navoff" onmouseover="this.classNam
e='navon'"
onmouseout="this.className
='navoff'"
style=cursor:hand name="loc" onclick="window.open('
http://www.samplesite.com/weddings/index.html','_top')
;">
Weddings</td></tr>
<tr height="10"><td></td></tr>
</table><table cellpadding="0" cellspacing="0" width="185">
<tr height="1"><td bgcolor="#ffffff"></td></t
r>
<tr><td height="55" bgcolor="babdaf" align="center" background="
http://www.samplesite.com/images/newsbg.gif"
><!-- newsletter -->
<a href="
http://www.samplesite.com/newsletter/index.html" class="small"><div class="credit"><font color="#24699c"><b>JOIN OUR NEWSLETTER</b></font></spa
n>
<center><img src="
http://www.samplesite.com/blank.gif" width="100" height="3" border="0"></center>
Sign up to receive by email<br>
our latest News and Offers</div></a></td></tr>
<tr height="1"><td bgcolor="#ffffff"></td></t
r>
<tr height="100"><td class="main" align="right" valign="bottom" style="padding-right:10px;
"><div style="padding: 0em; width:120px; border: solid; border-width: 1px; border-color: #0e8a9e;" title="Current Weather"><iframe name="weather" src="
http://www.samplesite.com/weather.htm" width="120" height="50" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></
div>
<iframe name="weather" src="
http://www.samplesite.com/weather2.htm" width="119" height="34" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe><i
mg src="
http://www.samplesite.com/images/cheatline.gif" width="2" height="34" /></td></tr>
<tr><td></td></tr></table>
</td>
<td width="2" bgcolor="#ffffff"><img src="
http://www.samplesite.com/blank.gif" width="2" height="2" border="0"></td><td valign="top" width="683" class="med"><!-- main --><center><img src="
http://www.samplesite.com/blank.gif" width="100" height="2" border="0"></center>
<table width="650" bgcolor="#d6e4ec" height="20" cellpadding="0" cellspacing="0"><tr><td valign="top" class="main"><!-- secondary nav -->
<table cellpadding="0" cellspacing="0"><tr height="20"><td width="10"></td>
</tr></table></td></tr></t
able>
<div class="maindiv">
<span class="header">Submission Error</span>
<table width="620" cellpadding="0" cellspacing="0"><tr><td valign="top" class="main">
<center><img src="../blank.gif" width="100" height="8"></center>
There appears to be a problem with your $subject.<br>
<br>$errmsg
Please click back to correct.
<br><span class="req">Fields</span> are required.
<form name="back" action="javascript:history
.back()">
<center><input type="submit" name="submit" value=" Go Back " class=main></center>
</form><br><br>
If you need immediate assistance, please contact us at $imass<br><br>
<br><br>
<br><br>
</td></tr></table>
</div>
</td><td width="1" bgcolor="#c0c0c0"></td></t
r>
<tr height="34"><td width="185" class="navtd" valign="top" align="center"><!-- bt space -->
<a class="credit" href="
http://www.samplesite.com/index.html"><f
ont color="#ffffff"><br /><b>sample site Resort & Club<br />
One sample site Road<br />Sometown, MI 99999<br />
(800) 555-1212 · (231) 555-1212<br />Fax: (231) 555-1213</b></font></a>
<center><img src="
http://www.samplesite.com/blank.gif" width="100" height="6" border="0"></center>
</td><td width="2" bgcolor="#ffffff"></td>
<td valign="bottom"><!-- btnav -->
<table width="100%"><tr height="25"><td width="6"></td>
<td class="main" valign="top"><A class="main">For reservations or more information, <a class="header" href="
http://www.secure-res.com/res/vn2/checka.asp?hotelid=xxxx">B
ook Online Now »</a> <A class="main">or call at 1.800.555.1212</A>
</td></tr></table>
<table width="100%" height="34" class="bttd"><tr>
<td align="center" valign="middle"><a class="btnav" href="
http://www.samplesite.com/about/index.html">THE RESORT</a></td>
<td align="center" valign="middle"><a class="btnav" href="
http://www.samplesite.com/gallery/index.html">PHOT
O GALLERY</a></td>
<td align="center" valign="middle"><a class="btnav" href="
http://www.samplesite.com/concierge/index.html">CR
EEK CONCIERGE</a></td>
<td align="center" valign="middle"><a class="btnav" href="
http://www.samplesite.com/contact.html">
CONTACT US</a></td>
<td align="center" valign="middle"><a class="btnav" href="
http://www.samplesite.com/directions.html">DIRECTI
ONS</a></t
d>
<td align="center" valign="middle"><a class="btnav" href="
http://www.samplesite.com/hr/index.html"
>EMPLOYMEN
T</a></td>
</tr></table></td></tr></t
able>
<table width="840"><tr><td><span class="credit"><a class="credit" href="
http://www.someothersite.com" target="new">Some Other Site</a></td>
<td align="right"><span class="credit">Copyright © <SCRIPT language="JavaScript"> document.write(WriteYearOp
tions(1));
</SCRIPT> sample site | &nb
sp;<a class="credit" href="
http://www.samplesite.com/privacy.html">
Privacy Act</a> |
<a class="credit" href="
http://www.samplesite.com/sitemap.html">
Site Map</a></td></tr>
</table>
<script src="
http://www.athirdsite.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-xxxxxx-xx";
urchinTracker();
</script>
</body>
</html>
PrintToBrowser
exit;
}
##########################
##########
##########
##########
##########
##########
#
open (datk, ">>$log");
print datk "$getdate|$type_info|$send
info|$emai
l|$name|$a
ddress|$ci
ty|$state|
$zip|$coun
try|$phone
|$visited|
$golf_freq
uency|$tra
vel_distan
ce|$skipar
ty|$skiref
erence\n";
close (datk);
open (datk, "$log");
$data = <datk>;
close (datk);
# SEND MAIL
open(MAIL, "| /usr/sbin/sendmail -t");
print MAIL "To: $to\n";
print MAIL "From: $FORM{'email'}\n";
print MAIL "CC: $cc\n";
print MAIL "Bcc: $mymail\n";
print MAIL "Subject: $FORM{'subject'} $FORM{'type_info'}\n";
print MAIL "Opt-In? $FORM{'sendinfo'}\n\n";
foreach $pair (@pairs) {
($name, $value) = split(/=/, $pair);
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9]
)/pack("C"
, hex($1))/eg;
unless ($name eq "response" || $name eq "subject" || $name eq "submit" || $name eq "type_info" || $name eq "hotel" || $name eq "to" || $name eq "cc" || $name eq "imass" || $name eq "opt-in") {
print MAIL "$name: $value\n";
}
}
close (MAIL);
#if ($FORM{'response'} && $FORM{'email'}) {
# open (RESPONSE, $FORM{'response'});
# @response = <RESPONSE>;
# close(RESPONSE);
# open (MAIL,"|$mailprogram");
# print MAIL "To: $Input_email\n";
# print MAIL "From: $to\n";
# print MAIL "Subject: RE: $FORM{'subject'} $FORM{'type_info'}\n";
# foreach $line (@response) {
# print MAIL "$line";
# }
# close MAIL;
# }
##########################
##########
##########
##########
##########
##########
#
# PRINT TO BROWSER 1
print "Content-type: text/html\n\n";
print <<"PrintToBrowser";
<html>
<head>
<title>sample site</title>
<SCRIPT LANGUAGE="JavaScript" src="
http://www.samplesite.com/fullday.js"></S
CRIPT>
<LINK REL="stylesheet" HREF="
http://www.samplesite.com/stylegrnd.css"
TYPE="TEXT/CSS">
</head>
<body>
PrintToBrowser
##exit;
print "<input type=hidden name=to value=$to>\n";
print "<input type=hidden name=from value=$FORM{'email'}>\n";
print "<input type=hidden name=cc value=$cc>\n";
print "<input type=hidden name=bcc value=$mymail>\n";
print "<input type=hidden name=subject value=\"$FORM{'subject'} $FORM{'type_info'}\">\n";
print "<input type=hidden name=optin value=\"$FORM{'sendinfo'}\
">\n\n";
print <<"PrintToBrowser";
<center>
<table width="840" cellpadding="0" cellspacing="0"><tr height="22">
<td class="credit"><a class="btnav" href="
http://www.samplesite.com/index.html">Ho
me</a></td
><td></td>
<td class="credit" align="right"><a class="btnav" href="
http://68.xxx.xxx.xxx/whatever/login.htm" title="sample site Club Members" target="afil">CLUB MEMBERS</a> |
<a class="btnav" href="
http://68.xxx.xxx.xxx/po/login.htm" title="sample site Property Owners" class="btnav" target="afil">PROPERTY OWNERS</a></td></tr></tabl
e>
<table width="840" cellpadding="0" cellspacing="0" class="maintable"><tr height="120" class="topTable"><td class="main" colspan="4"><table width="100%" cellpadding="0" cellspacing="0"><tr><Td width="15"></Td><td class="main" width="212"><a href="
http://www.samplesite.com/index.html"><i
mg src="
http://www.samplesite.com/images/logodk.gif" alt="sample site Resort & Club" width="212" height="105" border="0" /></a></td>
<td class="main" valign="top"><img src="
http://www.samplesite.com/images/topmorecrop.gif" width="397" height="19" vspace="10" hspace="30"/>
<br /></td></tr></table></td><
/tr>
<tr height="400"><td width="185" class="navTable" valign="top">
<!-- nav -->
<table cellpadding="0" cellspacing="0" width="185" class="navtd">
<tr height="22"><td class="main"></td></tr>
<tr height="1"><td bgcolor="#ffffff"></td></t
r>
<tr height="20"><td valign="middle" class="bttdnav" onmouseover="this.classNam
e='bttdon'
" onmouseout="this.className
='bttdnav'
" style=cursor:hand name="loc" onclick="window.open('
http://www.secure-res.com/res/vn2/checka.asp?hotelid=xxxx','_top');">
HOTEL RESERVATIONS</td></tr>
<tr height="1"><td bgcolor="#ffffff"></td></t
r>
<tr height="2"><td></td></tr>
<tr height="1"><td bgcolor="#ffffff"></td></t
r>
<tr height="20"><td valign="middle" class="bttdnav" onmouseover="this.classNam
e='bttdon'
" onmouseout="this.className
='bttdnav'
" style=cursor:hand name="loc" onclick="window.open('
http://www.secure-res.com/res/vn2/listp.asp?id=xxxx,'_top');">
Specials & Packages</td></tr>
<tr height="1"><td bgcolor="#ffffff"></td></t
r>
<tr height="10"><td></td></tr>
<tr height="18"><td valign="middle" class="navoff" onmouseover="this.classNam
e='navon'"
onmouseout="this.className
='navoff'"
style=cursor:hand name="loc" onclick="window.open('
http://www.samplesite.com/villages/index.html','_top')
;">
The Villages</td></tr>
<tr height="2"><td></td></tr>
<tr height="18"><td valign="middle" class="navoff" onmouseover="this.classNam
e='navon'"
onmouseout="this.className
='navoff'"
style=cursor:hand name="loc" onclick="window.open('
http://www.samplesite.com/guestrooms/index.html','_top');">
Guest Rooms & Amenities</td></tr>
<tr height="2"><td></td></tr>
<tr height="18"><td valign="middle" class="navoff" onmouseover="this.classNam
e='navon'"
onmouseout="this.className
='navoff'"
style=cursor:hand name="loc" onclick="window.open('
http://www.samplesite.com/dining/index.html','_top');"
>
Dining & Entertainment</td></tr>
<tr height="2"><td></td></tr>
<tr height="18"><td valign="middle" class="navoff" onmouseover="this.classNam
e='navon'"
onmouseout="this.className
='navoff'"
style=cursor:hand name="loc" onclick="window.open('
http://www.samplesite.com/golf/index.html','_top');">
Golf Courses</td></tr>
<tr height="2"><td></td></tr>
<tr height="18"><td valign="middle" class="navoff" onmouseover="this.classNam
e='navon'"
onmouseout="this.className
='navoff'"
style=cursor:hand name="loc" onclick="window.open('
http://www.samplesite.com/winter/index.html','_top');"
>
Snowsports</td></tr>
<tr height="2"><td></td></tr>
<tr height="18"><td valign="middle" class="navoff" onmouseover="this.classNam
e='navon'"
onmouseout="this.className
='navoff'"
style=cursor:hand name="loc" onclick="window.open('
http://www.samplesite.com/spa/index.html','_top');">
Spa & Fitness</td></tr>
<tr height="2"><td></td></tr>
<tr height="18"><td valign="middle" class="navoff" onmouseover="this.classNam
e='navon'"
onmouseout="this.className
='navoff'"
style=cursor:hand name="loc" onclick="window.open('
http://www.samplesite.com/recreation/index.html','_top');">
Recreation & Activities</td></tr>
<tr height="2"><td></td></tr>
<tr height="18"><td valign="middle" class="navoff" onmouseover="this.classNam
e='navon'"
onmouseout="this.className
='navoff'"
style=cursor:hand name="loc" onclick="window.open('
http://www.samplesite.com/family/index.html','_top');"
>
Family Programs</td></tr>
<tr height="2"><td></td></tr>
<tr height="18"><td valign="middle" class="navoff" onmouseover="this.classNam
e='navon'"
onmouseout="this.className
='navoff'"
style=cursor:hand name="loc" onclick="window.open('
http://www.samplesite.com/events/index.html','_top');"
>
Meetings & Events</td></tr>
<tr height="2"><td></td></tr>
<tr height="18"><td valign="middle" class="navoff" onmouseover="this.classNam
e='navon'"
onmouseout="this.className
='navoff'"
style=cursor:hand name="loc" onclick="window.open('
http://www.samplesite.com/weddings/index.html','_top')
;">
Weddings</td></tr>
<tr height="10"><td></td></tr>
</table><table cellpadding="0" cellspacing="0" width="185">
<tr height="1"><td bgcolor="#ffffff"></td></t
r>
<tr><td height="55" bgcolor="babdaf" align="center" background="
http://www.samplesite.com/images/newsbg.gif"
><!-- newsletter -->
<a href="
http://www.samplesite.com/newsletter/index.html" class="small"><div class="credit"><font color="#24699c"><b>JOIN OUR NEWSLETTER</b></font></spa
n>
<center><img src="
http://www.samplesite.com/blank.gif" width="100" height="3" border="0"></center>
Sign up to receive by email<br>
our latest News and Offers</div></a></td></tr>
<tr height="1"><td bgcolor="#ffffff"></td></t
r>
<tr height="100"><td class="main" align="right" valign="bottom" style="padding-right:10px;
"><div style="padding: 0em; width:120px; border: solid; border-width: 1px; border-color: #0e8a9e;" title="Current Weather"><iframe name="weather" src="
http://www.samplesite.com/weather.htm" width="120" height="50" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></
div>
<iframe name="weather" src="
http://www.samplesite.com/weather2.htm" width="119" height="34" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe><i
mg src="
http://www.samplesite.com/images/cheatline.gif" width="2" height="34" /></td></tr>
<tr><td></td></tr></table>
</td>
<td width="2" bgcolor="#ffffff"><img src="
http://www.samplesite.com/blank.gif" width="2" height="2" border="0"></td><td valign="top" width="683" class="med"><!-- main --><center><img src="
http://www.samplesite.com/blank.gif" width="100" height="2" border="0"></center>
<table width="650" bgcolor="#d6e4ec" height="20" cellpadding="0" cellspacing="0"><tr><td valign="top" class="main"><!-- secondary nav -->
<table cellpadding="0" cellspacing="0"><tr height="20"><td width="10"></td>
</tr></table></td></tr></t
able>
<div class="maindiv">
<span class="header">Thank you for your information</span>
<table width="620" cellpadding="0" cellspacing="0"><tr><td valign="top" class="main">
<center><img src="../blank.gif" width="100" height="8"></center>
sample site Resort & Club and 106KHQ FM are proud to present
The \$1.06 Ski Night Lift Ticket Certificate
<center><img src="../blank.gif" width="200" height="6"></center>
<a class="main" href="../valuecoupon.htm" onclick="window.open('','p
opup','hei
ght=450,wi
dth=720,sc
rollbars=y
es,locatio
n=no,resiz
able=no,di
rectories=
no,status=
no,menubar
=no,toolba
r=no,scree
nX=50,scre
enY=50,top
=50,left=1
00')" target="popup">Click Here to Print your Certificate</a>
<br><br>
Thank you for choosing $hotel.
<br><br>
<br><br>
</td></tr></table>
</div>
</td><td width="1" bgcolor="#c0c0c0"></td></t
r>
<tr height="34"><td width="185" class="navtd" valign="top" align="center"><!-- bt space -->
<a class="credit" href="
http://www.samplesite.com/index.html"><f
ont color="#ffffff"><br /><b>sample site Resort & Club<br />
One sample site Road<br />Sometown, MI 99999<br />
(800) 555-1212 · (231) 555-1212<br />Fax: (231) 555-1213</b></font></a>
<center><img src="
http://www.samplesite.com/blank.gif" width="100" height="6" border="0"></center>
</td><td width="2" bgcolor="#ffffff"></td>
<td valign="bottom"><!-- btnav -->
<table width="100%"><tr height="25"><td width="6"></td>
<td class="main" valign="top"><A class="main">For reservations or more information, <a class="header" href="
http://www.secure-res.com/res/vn2/checka.asp?hotelid=xxxx">B
ook Online Now »</a> <A class="main">or call at 1.800.555.1212</A>
</td></tr></table>
<table width="100%" height="34" class="bttd"><tr>
<td align="center" valign="middle"><a class="btnav" href="
http://www.samplesite.com/about/index.html">THE RESORT</a></td>
<td align="center" valign="middle"><a class="btnav" href="
http://www.samplesite.com/gallery/index.html">PHOT
O GALLERY</a></td>
<td align="center" valign="middle"><a class="btnav" href="
http://www.samplesite.com/concierge/index.html">CR
EEK CONCIERGE</a></td>
<td align="center" valign="middle"><a class="btnav" href="
http://www.samplesite.com/contact.html">
CONTACT US</a></td>
<td align="center" valign="middle"><a class="btnav" href="
http://www.samplesite.com/directions.html">DIRECTI
ONS</a></t
d>
<td align="center" valign="middle"><a class="btnav" href="
http://www.samplesite.com/hr/index.html"
>EMPLOYMEN
T</a></td>
</tr></table></td></tr></t
able>
<table width="840"><tr><td><span class="credit"><a class="credit" href="
http://www.someothersite.com" target="new">Some Other Site</a></td>
<td align="right"><span class="credit">Copyright © <SCRIPT language="JavaScript"> document.write(WriteYearOp
tions(1));
</SCRIPT> sample site | &nb
sp;<a class="credit" href="
http://www.samplesite.com/privacy.html">
Privacy Act</a> |
<a class="credit" href="
http://www.samplesite.com/sitemap.html">
Site Map</a></td></tr>
</table>
<script src="
http://www.athirdsite.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-xxxxxx-xx";
urchinTracker();
</script>
</body>
</html>
PrintToBrowser
exit;
#print "Content-type: text/html\n\n";
#print "<font size=\"2\" face=\"verdana, arial, helvetica\">\n";
#print "$Input_email\n";
#exit;
Start Free Trial