Yes, it is possible using either Win32::OLE or some of the built-ins of the active state distro. (use OLE;)
use OLE;
$ActiveSession = CreateObject OLE "MAPI.Session" ||
die "CreateObject: $!";
$Message = $ActiveSession->Outbox->Messages->Add();
$Recipient = $Message->Recipients->Add();
$Recipient->{Name} = "Erik Olson"; # to address
$Recipient->{Type} = 1; # ugly constant, means this is a To address
$Recipient->Resolve(); # resolve name - hope it's there
$Message->{Subject} = "A Message From Perl";
$Message->{text} = "Perl does automation!";
$Message->Update(); # save it
$Message->Send(1, 0, 0); # send it - don't show UI
$ActiveSession->Logoff(); # end session
This code is from learning Perl on Win32 systems. It should give you an idea how this all works.
Once you find the Object defs for the AOL client, you should be golden.
~Hammy |