First of all, a happy 2000 to you all.
second, in my continuing quest ;) of mailing attachements with sendmail and perl...
I use the following script:
$top = build MIME::Lite Type => "multipart/mixed",
From => "email@example.com",
To => "firstname.lastname@example.org",
Subject => "Hello, nurse!";
attach $top Path=>"test.html";
$sendmail = '/usr/sbin/sendmail';
open(MAIL, "|$sendmail -t");
When trying to test i get the following error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.
Premature end of script headers: test.cgi
What could be wrong now and how do i solve it.