in reply to Email error checking
This prevents the script from dying if send(); fails. Of course, you want to make sure sending is working properly to begin with (maybe your script is failing for some reason other than a bad email address - you can print the value of $@ to see why it is failing).eval { $msg->send(); }; if($@) { # We had an error, log it to a file... $log->add_message($email_address, $@); }
|
|---|