#!/usr/local/bin/perl5 push (@INC, '/cgi-bin'); require ('cgi-lib.pl'); # This should match the mail program on your system. $mailprog = '/usr/lib/sendmail'; # This should be set to the username or alias that processes the # requests $recipient = "immune\@best.com"; # Print out a content-type for HTTP/1.0 compatibility print "Content-type: text/html\n\n"; # Print a title and initial heading print "Your Survey Answers Have Been Sent"; &ReadParse; open (MAIL, "|$mailprog $recipient") || die "Unable to send request\nPlease send e-mail to immune\@best.com, Thank you\n"; #open (MAIL, ">test") || die "Cannot open STDOUT: $!\n"; print MAIL "Reply-to: $in{'email'}\n"; print MAIL "Subject: Demographic Survey Form\n"; print MAIL "\n\n"; #print "*$#in_key\n"; foreach $i (0 .. $#in_key){ #print "$in_key[$i] = $in_val[$i], i = $i

"; print MAIL "$in_key[$i] = $in_val[$i]\n"; } print MAIL "-----------------------------------------------\n"; close (MAIL); print "Thanks so much for your time!! Your request has been sent.

"; print '

Return to Home Page

';