The result I keep getting is
“Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@teamhosts.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/1.3.27 Server at www.bellevuevilla-orlando.com Port 80”
The error log reads,
“malformed header from script. Bad header=Recipient names must be specif:”
Can anyone tell me what this might mean?
my $sendmailpath = '/usr/sbin/sendmail';
my $To = 'me@mysite.com';
my $From = 'me@mysite.com';
my $Subject = "This is the subject";
open (MAIL, "¦$sendmailpath -t");
print MAIL "To: $To\nFrom: $From\n";
print MAIL "Subject: $Subject\n";
print MAIL "Here is the body.\n";
close (MAIL);
If you copy and paste code from WebmasterWorld, remember that the pipe symbol gets changed and you will need to rekey it using your keyboard!