Re: Error Info (Just when I thought I couldn't get upset anymore...)

From: Date: Thu, 19 Jun 2003 15:36:54 +0000
Subject: Re: Error Info (Just when I thought I couldn't get upset anymore...)
References: 1 2 3 4 5 6  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6124@lists.php.net to get a copy of this message
Ok, here's the code: <?php # Database abstraction layer ini_set("include_path","/usr/share/pear"); include_once("/usr/share/pear/Mail.php"); include_once("/usr/share/pear/Mail/mime.php"); // The message $html = "<HTML><BODY><strong>Hello</strong> <br><font color=\"blue\">The following message is being sent to you as a test for the DJHeadlines.com mailing list. You have been selected by Drew to test this message. Please respond to insyder@myrealbox.com saying you received an html message and whether or not it looked blue.</font></BODY></HTML>"; // Clean up for plain text. $text = strip_tags($html); $crlf = "\n"; $hdrs = array(
             'From'    => 'insyder@myrealbox.com',
             'Subject' => 'DJHeadlines.com Test mime message',
             );
$mime = new Mail_mime($crlf); $mime->setTXTBody($text); $mime->setHTMLBody($html); $param["html_encoding"] = "7bit"; $body = $mime->get($param); $hdrs = $mime->headers($hdrs); $mail =& Mail::factory('mail'); echo "made it"; $mail->send('insyder@insyderhomielc.com', $hdrs, $body); ini_restore("include_path"); ?> Here's the error: *Fatal error*: Call to a member function on a non-object in */usr/share/pear/Mail.php* on line *51 Show's ya where I'm at, at this point. I'm not having much luck with this thing. *

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