andy: probleme mit sendmail

Beitrag lesen

hi
kann mir jemand helfen ich weiß nicht wo der fehler liegt:
er bringt mir im Explorer ein Internal Server Error

#!/usr/bin/perl
 use CGI;

my $adminemail = 'andy@test.com';

Pfad zum Mailprogramm

my $query    = new CGI;
 my $sendmail = "/usr/sbin/sendmail -t";
 my $reply_to = "Reply-to: naumann.andreas@siemens.com";
 my $subject  = "Subject: only a test";
 my $content  = "das ist eine testmail";
 my $to       = 'andy@test.com';
 my $mailprogramm = "/usr/lib/sendmail -t";

open(MAIL,"$mailprogramm ");

print MAIL "To: $adminemail\n";
 print MAIL $subject;
 print MAIL $to;
 print MAIL "Content-type: text/plain\n\n";
 print MAIL $content;

close(MAIL);

print $query->header;

Danke