Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Email program with attachments

by $code or die (Deacon)
on Oct 09, 2001 at 03:06 UTC ( [id://117578]=note: print w/replies, xml ) Need Help??


in reply to Re: Email program with attachments
in thread Email program with attachments

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;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://117578]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-24 12:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found