#!/usr/local/bin/perl # # Based on # white-form.pl -- cgi compliant interface to mail // Jun 20 1994 # (C) Christian Neuss, Fraunhofer IGD (neuss@igd.fhg.de) # # Customizing by Brian Lucas, lucas@mbnet.mb.ca # # This is the demonstration of a generic inquiry form for the LI Demo page # #--------------------------------------------------------------------- # CUSTOMIZATION #--------------------------------------------------------------------- # The address to which this script will send mail local($mailto)="admin\@towd.com"; # The path to this script local($scriptname)="sendmail.pl.cgi"; #The title to be put in the
Please do not send requests for travel information using this form. "; print "Although we maintain the list of tourism offices, we do not stock any tourist information (brochures, maps, etc.) ourselves; all of that information must be otained directly from the relevant tourist office. "; print "Many offices do not provide service by email, so you will have to telephone them, or write a letter on paper. "; print "We cannot relay messages to tourist information offices for you, and any requests that we receive for tourist information will be rejected or ignored. "; print "As well, we are not a travel agency and so we cannot provide information about transportation fares and schedules, or accommodations. "; print "You may wish to visit the Rec.Travel Library for additional travel information, or return to the Tourism Offices Worldwide Directory to contact a tourist information of fice directly. "; print "
Try again
\n";
do {print "Return to last page
"}
unless ($return eq "");
print "Go to $gotopagename\n";
print "\n";
} else {
open(MAIL, "|/usr/lib/sendmail $mailto") || die "Unable to open mail progr
am.\n";
print MAIL "Reply-to: $email ($name)\n";
print MAIL "Subject: $subject\n\n";
print MAIL "From: $name\n";
print MAIL "Email: $email\n";
print MAIL "$content\n";
close(MAIL);
print "Content-type: text/html\n\n";
print "
\n"; print "Go to Tourism Offices Worldwide Directory"; print "\n"; } } &doit();