L
laredotornado
Hi,
I'm having some trouble getting the Mailer module to work. I keep
getting this error
No recipient addresses found in header
although in my code, below, I include a "To" clause. But clearly I'm
doing something wrong ...
my $body = "Blah blah blah:\n\n";
my %headers = {From => "$p_sender",
To => "$p_recipient",
Subject => "$p_subject"
};
my $mailer = Mail::Mailer->new();
$mailer->open(\%headers);
print $mailer $body;
$mailer->close;
Any ideas? Thanks, - Dave
I'm having some trouble getting the Mailer module to work. I keep
getting this error
No recipient addresses found in header
although in my code, below, I include a "To" clause. But clearly I'm
doing something wrong ...
my $body = "Blah blah blah:\n\n";
my %headers = {From => "$p_sender",
To => "$p_recipient",
Subject => "$p_subject"
};
my $mailer = Mail::Mailer->new();
$mailer->open(\%headers);
print $mailer $body;
$mailer->close;
Any ideas? Thanks, - Dave