Re: Re: [NEWBIE] Mail Help

From: Date: Mon, 21 Feb 2005 19:20:20 +0000
Subject: Re: Re: [NEWBIE] Mail Help
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17602@lists.php.net to get a copy of this message
Hi Brett Patterson, you wrote: No... :) The general usage pattern is to test the return value of a called method to be a PEAR_Error: $mail = Mail::factory('mail'); if (PEAR::isError($mail)) { die($mail->getMessage()); } if (PEAR::isError($error = $mail->send(...))) { die($error->getMessage()); } // shortcut: PEAR::setErrorHandling(PEAR_ERROR_DIE); Did you have a look at the manual yet? -- Michael - < mike(@)php.net >

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.pear.general (#17602) next »