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 "<P> server error - please contact our office \n";
exit;
}
"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"
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 "<P> server error - please contact our office \n";
exit;
}