perldoc Mail::Mailer
You can also view in via cpan.org:
[search.cpan.org...]
HTH,
-Bill
[pre]
#!/usr/bin/perl
use strict;
use warnings;
use Carp;
use Mail::Mailer;
# pick one
# my $type = "sendmail";
# my $type = "smtp";
# my $type = "qmail";
my $type = "testfile";
my $mailer = new Mail::Mailer $type;
my %headers = ();
$headers {From} = 'you@yourdomeain.com';
$headers {To} = 'them@theirdomain.com';
$headers {CC} = 'other@otherdomain.com';
$headers {BCC} = 'more@moredomain.com';
$mailer->open(\%headers);
my $body = "This is the body of the email";
print $mailer $body;
$mailer->close;
[/pre]