May 11, 200917 yr Iam using fasthosts as my hosting, and theyve given me this perl script to use for processing the form, Ive tried others but dont seem to work on their servers, I just want to know exactly what I have to fill in email address etc, and the blat script, what do I have to enter here in order to process the form. Any help would be much appreciate, please see script below ######################### # Form To Mail Script # # --------------------- # # Pete Jefferson/ # # FastHosts # # # # Windows NT Friendly!! # ######################### # This script: # # - Takes the form contents # - Saves the message into a temporary file # - Calls Blat to send the mail # # Use the cgi unit use cgi; # Get the values from the form $form = new CGI; $sname=$form->param('sendername'); $saddr=$form->param('senderaddr'); $rname=$form->param('recipientname'); $raddr=$form->param('recipientaddr'); $subject=$form->param('subject'); $server="smtp.fasthosts.co.uk"; $message=$form->param('message'); # Output the correct header print "Content-type: text/html\n\n"; # Save the message into a text file open (messtxt,">message.txt"); print messtxt ($message); close messtxt; # Build the Blat command line and execute it $blat="blat.exe message.txt -s \"$subject\" -t \"$raddr\" -server $server -f \"$saddr\""; system($blat); print $blat; print "<br><br>Done.<br><br>"; print "Mail sent to $raddr.";
Create an account or sign in to comment