Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"The system cannot find the path specified" - Error, need help

Status
Not open for further replies.

darren123

Technical User
Oct 6, 2006
2
AU
When I try to execute the script below I keep getting the error message:

"The system cannot find the path specified. "

Can anyone please tell me why? The script is as follows:

#!/usr/local/bin/perl
require "subparseform.lib";
&Parse_Form;
$email1 = "dreamtim\@dreamtime.com.au";
$first1 = $formdata{'first_name'};
$tomail = "dschembri\@bigpond.com";
print "Content-type: text/html\n\n";
open (MAIL,"|/usr/sbin/sendmail -t")||&ErrorMessage;
print MAIL "To: $tomail \nFrom: $email1 \n";
print MAIL "Subject: Website Feedback \n";
print MAIL "The following name has been entered ($first1)\n";
close (MAIL);
sub ErrorMessage {
print &quot;<P> server error - please contact our office \n&quot;;
exit;
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top