if you want to use Perl to send mail, you need to do two things:
1) Install "sendmail" on your computer.
2) To actually SEND the mail, you need to open a filestream to the sendmail program...like so:
Code:
unless(open(SENDMAIL, "| $sendmailpath -t")) { die; }
Then, you just pipe everything to sendmail with a print statement as an HTML file. I suggest using the CGI Perl module (for working with the to-be-created HTML pages). So, the crucial lines of your Perl script should look something like this:
Code:
#!/usr/bin/perl -w
use CGI;
print header();
print html_start();
unless(open(SENDMAIL, "| $sendmailpath -t")) { die "ERROR!"; }
print (SENDMAIL, $variable);
I hope that helps.