in reply to Re^4: Trap the error msg from Mime::Litein thread Trap the error msg from Mime::Lite
send spawns out to sendmail. If you have Net::SMTP installed you can use
eval { $msg->send_by_smtp; }; if ($@) { # handle error } [download]