PEAR::isError not working - any ideas?

From: Date: Fri, 14 Mar 2008 12:44:41 +0000
Subject: PEAR::isError not working - any ideas?
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28639@lists.php.net to get a copy of this message
Hi I'm fairly good with PHP and very new to PEAR and I was hoping someone might be able to help me out. We've just started using a dedicated server running Ubuntu Linux which already has the PEAR modules installed that I need to send emails i.e. Mail and Mail_mime They both work perfectly to create and send an email, but what I really need is to get feedback in the case of errors, i.e. email bounced, mailbox full, etc. This is a very basic setup, but the code is something like this: $mail = Mail::factory("mail"); $mail->send($recipient["email"], $mimeReady["headers"], $mimeReady["body"]); if (PEAR::isError($mail)) echo $mail->getMessage(); Having looked at the documentation I thought that this was the way to get the information I need... so could anyone tell me what's wrong or why I might not be getting any error from it (even in the case of seriously unrealistic email addresses)? Any help would be GREATLY appreciated :) Thanks. Kama -- View this message in context: http://www.nabble.com/PEAR%3A%3AisError-not-working---any-ideas--tp16048098p16048098.html Sent from the Pear - General mailing list archive at Nabble.com.

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