RE: [PEAR] Re: [NEWBIE] Mail Help

From: Date: Mon, 21 Feb 2005 19:29:47 +0000
Subject: RE: [PEAR] Re: [NEWBIE] Mail Help
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17603@lists.php.net to get a copy of this message
I read through the manual last night, and followed the tutorial last night as well. I'll try what you have so graciously offered to me. ~Brett -----Original Message----- From: Michael Wallner [mailto:mike@php.net] Sent: Monday, February 21, 2005 2:20 PM To: pear-general@lists.php.net Subject: Re: [PEAR] Re: [NEWBIE] Mail Help 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 >

« previous php.pear.general (#17603) next »