donkeykong has asked for the wisdom of the Perl Monks concerning the following question:
I keep getting this error when I run it:use Mail::Sender; sub send_mail { my $sender = Mail::Sender->new({ smtp => 'xxxx', from => 'dk@dk.com', fake_from => 'Ping Service' }); $sender->MailFile( { to => 'diki@dk.com', subject => $subject, msg => $body }); $sender->Close; }
I just installed the module, and verified its existence, and the script runs if I don't call this sub. I've also looked at a bunch of other sample code with this exact format. Any help is appreciated.Can't call method "MailFile" without a package or object reference at +script.pl on line 36
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mail::Sender giving me an error
by Anonymous Monk on Aug 06, 2009 at 21:18 UTC | |
by donkeykong (Novice) on Aug 06, 2009 at 21:24 UTC | |
by Anonymous Monk on Aug 06, 2009 at 21:32 UTC | |
|
Re: Mail::Sender giving me an error
by Jenda (Abbot) on Aug 09, 2009 at 09:57 UTC | |
by Anonymous Monk on Aug 09, 2009 at 10:11 UTC | |
|
Re: Mail::Sender giving me an error
by bichonfrise74 (Vicar) on Aug 06, 2009 at 22:58 UTC |