Trouble sending an email with Mailer module
- From: laredotornado@xxxxxxxxxxx
- Date: 31 Jan 2006 13:37:14 -0800
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
.
- Follow-Ups:
- Re: Trouble sending an email with Mailer module
- From: Gunnar Hjalmarsson
- Re: Trouble sending an email with Mailer module
- From: Ch Lamprecht
- Re: Trouble sending an email with Mailer module
- Prev by Date: Re: Transform hash key?
- Next by Date: Re: split the sequences
- Previous by thread: Re: Text file splitter, date/time field
- Next by thread: Re: Trouble sending an email with Mailer module
- Index(es):
Relevant Pages
|