Subject: | [manish@mksh.net: Email::Send warnings?] |
Date: | Thu, 21 Sep 2006 12:17:00 -0400 |
To: | bug-Email-Send [...] rt.cpan.org |
From: | Casey West <casey [...] geeknest.com> |
----- Forwarded message from Manish Sharma <manish@mksh.net> -----
Date: Thu, 21 Sep 2006 20:13:43 +0530
From: "Manish Sharma" <manish@mksh.net>
To: casey@geeknest.com
Subject: Email::Send warnings?
Hey,
I tried using Email::Simple::Creator & Email::Send but when ever I
invoke send($message), I get the following warnings
--snip--
Use of uninitialized value in exists at
/usr/local/lib/perl5/site_perl/5.8.8/Email/Address.pm line 147.
Use of uninitialized value in pattern match (m//) at
/usr/local/lib/perl5/site_perl/5.8.8/Email/Address.pm line 166.
Use of uninitialized value in hash element at
/usr/local/lib/perl5/site_perl/5.8.8/Email/Address.pm line 156.
Use of uninitialized value in exists at
/usr/local/lib/perl5/site_perl/5.8.8/Email/Address.pm line 147.
Use of uninitialized value in hash element at
/usr/local/lib/perl5/site_perl/5.8.8/Email/Address.pm line 147.
Use of uninitialized value in pattern match (m//) at
/usr/local/lib/perl5/site_perl/5.8.8/Email/Address.pm line 166.
Use of uninitialized value in hash element at
/usr/local/lib/perl5/site_perl/5.8.8/Email/Address.pm line 156.
--snip--
Here is a sample script that produces the above warnings for me
-- start --
#!/usr/bin/perl -w
use strict;
use Email::Send;
my $message = <<'__MESSAGE__';
To: manish@mksh.net
From: maaand@yahoo.com
Subject: Hello there folks
How are you? Enjoy!
__MESSAGE__
my $sender = Email::Send->new({mailer => 'SMTP'});
$sender->mailer_args([Host => 'smtp.yahoo.com']);
$sender->send($message);
-- end --
What am I doing wrong?
thanks for your time,
-m
Show quoted text
----- End forwarded message -----
Casey West
--
Shooting yourself in the foot with Prolog
You attempt to shoot yourself in the foot, but the bullet, failing to
find its mark, backtracks to the gun, which then explodes in your
face.