Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: MIME::Lite error handling

by robartes (Priest)
on Feb 28, 2003 at 22:21 UTC ( [id://239571]=note: print w/replies, xml ) Need Help??


in reply to MIME::Lite error handling

Good point. The way I read the docs, the module is behaving as it should:

Returns whatever the mail-handling routine returns: this should be true on success, false/exception on error

The way I read this, the send method can throw an exception, which is what is happening in your case (hence, your catching it with eval). So, it is behaving as documented.

It could be a bit clearer though, something along the lines of ... returns false or throws an exception on error..

Update: closed italics tag. Thanks AlexL.

CU
Robartes-

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-26 07:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found