Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: Trap the error msg from Mime::Lite

by chrism01 (Friar)
on Jan 24, 2008 at 00:07 UTC ( [id://663913]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Test::Trap;
    
    use version; $VERSION = qv('0.1.0');
    
  2. or download this
        # Send
        trap { $msg->send or $error_msg = "Error: $! $@\n" };
        $_ and $error_msg .= ": $_\n" for $trap->die, $trap->stdout, $trap
    +->stderr;
        exit_with_error("email_csv_file() failed: $error_msg") if( $error_
    +msg );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-25 06:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found