The easier way, and way that I use on my systems, is with Net::SMTP if you have a SMTP server on you enviroment. The other way is to use OLE to talk with Outlook or any other email client, but this is the hard way, very hard :)
Solli Moreira Honorio
Sao Paulo - Brazil
Comment on Re: How to sendmail using Perl in WindowXP
For a higher-level abstraction, also consider Email::Send.
From the synopsis:
use Email::Send;
my $message = <<'__MESSAGE__';
To: recipient@example.com
From: sender@example.com
Subject: Hello there folks
How are you? Enjoy!
__MESSAGE__
my $sender = Email::Send->new({mailer => 'SMTP'});
$sender->mailer_args([Host => 'smtp.example.com']);
$sender->send($message);
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.