Do you know where your variables are? | |
PerlMonks |
Re: Re: Email program with attachmentsby $code or die (Deacon) |
on Oct 09, 2001 at 03:06 UTC ( [id://117578]=note: print w/replies, xml ) | Need Help?? |
No. $sender is lexically scoped and has no meaning outside the loop. The error is with the code. If you look at the docs, the Close() method sends the mail, if you move $sender->Close() outside the loop, the best you can hope for is only one email being sent - the last one. I can understand why you think that the problem is with the module's code - the error messages look that way - because the module uses warn() and not carp() in those lines. Simon Flack ($code or die) $,=reverse'"ro_';s,$,\$,;s,$,lc ref sub{},e;$, =~y'_"' ';eval"die";print $_,lc substr$@,0,3;
In Section
Seekers of Perl Wisdom
|
|