ok...#1...I have no interest in spam.
I had an email script on 'old HyperMart' (remember them?) that worked nicely.
It begins like this
#!/usr/bin/perl
$filename = "mail.pl";
$path = "/var/qmail/bin/qmail-inject";
use CGI qw(param); print "Content-type:text/html\n\n"; print "<body==================================================
For this host perhaps the recipe?