Ok, I wan't to send a simple e-mail sentence to my website using this script (see below). Somehow it doesn't work, so please help me out.
open(MAIL,"|$mailserver")||die "can't open sendmail\n";
print MAIL "To: $test";
print MAIL "Subject: $test";
print MAIL "Reply-to: $test\n\n";
print MAIL "$test\n\n";