This is weird - I am writing an incredibly simple Perl script (with absolutely NO taint checking) and it is not cooperating when I have "To: blah@blah.com" specified. Here's what I have:
That will return a 500 error. If I Remove the "To:" from the first line, it works fine! Am I simply being denied access to sendmail or is there something else I am missing here? Any help is MUCH appreciated!!
Code:
open(MAIL,"|/usr/sbin/sendmail");
print MAIL "[b]To:[/b] blah@blah.com\n";
print MAIL "From: anon\n";
print MAIL "-" x 75 . "\n\n";
print MAIL "Testing\n";
print MAIL "-" x 75 . "\n\n";
close(MAIL);