Re: Trouble sending an email with Mailer module



laredotornado@xxxxxxxxxxx wrote:
Hi,
use strict;
use warnings;


my $body = "Blah blah blah:\n\n";


        my %headers = {From => "$p_sender",
           ^             To => "$p_recipient",
           ^             Subject => "$p_subject"
           ^           };
-------------^a hash --^ a hashref
        my $mailer = Mail::Mailer->new();
        $mailer->open(\%headers);
        print $mailer $body;
        $mailer->close;

Any ideas?  Thanks, - Dave


HTH Christoph --

perl -e "print scalar reverse q/ed.enilno@xxxxxxxxx/"
.