Subject: | Warnings when using Email::Simple::Creator with Email::Send |
Date: | Thu, 26 Jun 2008 10:08:06 +0200 |
To: | bug-Email-Simple-Creator [...] rt.cpan.org, bug-Email-Send [...] rt.cpan.org |
From: | Claus Fischer <claus.fischer [...] clausfischer.com> |
System: Debian-Etch x86
Version:
Perl: 5.8.8-7
Email::Simple::Creator: 1.41-1
Email::Send: 2.181-1
Bug description:
****************
When using Email::Send with an object created with
Email::Simple, perl -w with use strict gives those
warnings:
Use of uninitialized value in exists at /usr/share/perl5/Email/Address.pm line 147, <STDIN> line 1.
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Email/Address.pm line 166, <STDIN> line 1.
Use of uninitialized value in hash element at /usr/share/perl5/Email/Address.pm line 156, <STDIN> line 1.
Use of uninitialized value in exists at /usr/share/perl5/Email/Address.pm line 147, <STDIN> line 1.
Use of uninitialized value in hash element at /usr/share/perl5/Email/Address.pm line 147, <STDIN> line 1.
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Email/Address.pm line 166, <STDIN> line 1.
Use of uninitialized value in hash element at /usr/share/perl5/Email/Address.pm line 156, <STDIN> line 1.
Sample code:
************
# Send confirmation email
my $confmessage =
Email::Simple->create(
header => [ From => 'some.one@somewhere.com',
ReplyTo => 'some.else@somewhere.com',
To => 'another.one@somewhereelse.com',
CC => '',
BCC => '',
Subject => 'All done',
],
body => ("Anything that needs to be done, has been done.\n" .
"Anything else will not be done.\n"
));
# Send confmessage via SMTP
my $emailer = Email::Send->new({mailer => 'SMTP',
mailer_args => [Host =>
'localhost'] });
$emailer->send($confmessage);
--
Claus Fischer <claus.fischer@clausfischer.com>
http://www.clausfischer.com/
Message body not shown because it is not plain text.