Rusty,
Rusty Nejdl wrote:
<snip>>
> The error just occurred again:
>
> Fatal error: Cannot use object of type PEAR_Error as array in
> /usr/local/www/data/eventum/include/class.mail.php on line 233
>
> I commented out line 1077 again and the error went away. For some reason,
> your debug code never printed anything to the website. Ideas on other
> places we can add some debug code?
Use this code instead:
function getAddressInfo($address)
{
$address = Mail_API::fixAddressQuoting($address);
$address = Mime_Helper::encodeValue($address);
include_once(APP_PEAR_PATH . "Mail/RFC822.php");
$t = Mail_RFC822::parseAddressList($address);
if (is_object($t)) {
echo "<pre>";print_r(debug_backtrace());echo "</pre>";
}
return array(
'sender_name' => $t[0]->personal,
'email' => $t[0]->mailbox . '@' . $t[0]->host,
'username' => $t[0]->mailbox,
'host' => $t[0]->host
);
}
Regards,
--
Bryan Alsdorf, Software Engineer
MySQL AB, www.mysql.com
Are you MySQL certified? www.mysql.com/certification