Advertisement

02.08.2007 at 08:01PM PST, ID: 22156017
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.0

Sendmail Not Working

Asked by super786 in Perl Programming Language

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>$required_form_array{$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"></SCRIPT>
<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">Home</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>&nbsp;&nbsp;|
&nbsp;&nbsp;<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></table>
<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"><img 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></tr>
<tr height="20"><td valign="middle" class="bttdnav"  onmouseover="this.className='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></tr>
<tr height="2"><td></td></tr>
<tr height="1"><td bgcolor="#ffffff"></td></tr>
<tr height="20"><td valign="middle" class="bttdnav"  onmouseover="this.className='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></tr>
<tr height="10"><td></td></tr>
<tr height="18"><td valign="middle" class="navoff"  onmouseover="this.className='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.className='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.className='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.className='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.className='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.className='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.className='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.className='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.className='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.className='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></tr>
<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></span>
<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></tr>
<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><img 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></table>
<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></tr>
<tr height="34"><td width="185" class="navtd" valign="top" align="center"><!-- bt space -->
<a class="credit" href="http://www.samplesite.com/index.html"><font color="#ffffff"><br /><b>sample site Resort & Club<br />
One sample site Road<br />Sometown, MI 99999<br />
(800) 555-1212 &middot; (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">Book Online Now &raquo;</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">PHOTO GALLERY</a></td>
<td align="center" valign="middle"><a class="btnav" href="http://www.samplesite.com/concierge/index.html">CREEK 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">DIRECTIONS</a></td>
<td align="center" valign="middle"><a class="btnav" href="http://www.samplesite.com/hr/index.html">EMPLOYMENT</a></td>
</tr></table></td></tr></table>
<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 &copy; <SCRIPT language="JavaScript"> document.write(WriteYearOptions(1)); </SCRIPT> sample site&nbsp;&nbsp;|&nbsp;&nbsp;<a class="credit" href="http://www.samplesite.com/privacy.html">Privacy Act</a>&nbsp;&nbsp;|&nbsp;&nbsp;<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|$sendinfo|$email|$name|$address|$city|$state|$zip|$country|$phone|$visited|$golf_frequency|$travel_distance|$skiparty|$skireference\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"></SCRIPT>
<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">Home</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>&nbsp;&nbsp;|
&nbsp;&nbsp;<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></table>
<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"><img 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></tr>
<tr height="20"><td valign="middle" class="bttdnav"  onmouseover="this.className='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></tr>
<tr height="2"><td></td></tr>
<tr height="1"><td bgcolor="#ffffff"></td></tr>
<tr height="20"><td valign="middle" class="bttdnav"  onmouseover="this.className='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></tr>
<tr height="10"><td></td></tr>
<tr height="18"><td valign="middle" class="navoff"  onmouseover="this.className='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.className='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.className='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.className='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.className='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.className='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.className='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.className='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.className='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.className='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></tr>
<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></span>
<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></tr>
<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><img 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></table>
<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('','popup','height=450,width=720,scrollbars=yes,location=no,resizable=no,directories=no,status=no,menubar=no,toolbar=no,screenX=50,screenY=50,top=50,left=100')" 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></tr>
<tr height="34"><td width="185" class="navtd" valign="top" align="center"><!-- bt space -->
<a class="credit" href="http://www.samplesite.com/index.html"><font color="#ffffff"><br /><b>sample site Resort & Club<br />
One sample site Road<br />Sometown, MI 99999<br />
(800) 555-1212 &middot; (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">Book Online Now &raquo;</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">PHOTO GALLERY</a></td>
<td align="center" valign="middle"><a class="btnav" href="http://www.samplesite.com/concierge/index.html">CREEK 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">DIRECTIONS</a></td>
<td align="center" valign="middle"><a class="btnav" href="http://www.samplesite.com/hr/index.html">EMPLOYMENT</a></td>
</tr></table></td></tr></table>
<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 &copy; <SCRIPT language="JavaScript"> document.write(WriteYearOptions(1)); </SCRIPT> sample site&nbsp;&nbsp;|&nbsp;&nbsp;<a class="credit" href="http://www.samplesite.com/privacy.html">Privacy Act</a>&nbsp;&nbsp;|&nbsp;&nbsp;<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
[+][-]02.08.2007 at 08:15PM PST, ID: 18499162

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.08.2007 at 08:25PM PST, ID: 18499193

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.08.2007 at 10:56PM PST, ID: 18499644

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.09.2007 at 09:46AM PST, ID: 18503102

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Perl Programming Language
Sign Up Now!
Solution Provided By: EarleAke
Participating Experts: 2
Solution Grade: C
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 - Hierarchy