From: "Ben Edwards" <[EMAIL PROTECTED]>
> On 01/06/07, Jenda Krynicky <[EMAIL PROTECTED]> wrote:
> > From:                   "Ben Edwards" <[EMAIL PROTECTED]>
> > > Have been googleing for a while and don't seem to be able to find a
> > > perl library which allows me to send an email without having to resort
> > > to a callback.   Can someone please point me in the correct direction.
> >
> > What do you mean by "callback" here???
> > Can you give me an example of a library and the callback?
> 
> A callback is when perl runs a OS command (i.e. mail).  This is bad
> because it is OS dependent.

I see. Well, I've never heard this being called "callback". And seems 
Wikipedia agrees with me 
http://en.wikipedia.org/wiki/Callback_%28computer_science%29

 callback = executable code that is passed as a parameter to other 
code 

What you are talking about is sometimes called "shelling out", but 
"running an OS command" or even better "running an external program" 
would work best.

You did not look hard enough.

There is Net::SMTP, MIME::Lite (this one allows sending both via and 
without an external program), Mail::Sender, Mail::Sendmail, ...

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to