Doc #8781 [Opn->Bgs]: Incomplete example

From: Date: Mon, 25 Sep 2006 09:28:10 +0000
Subject: Doc #8781 [Opn->Bgs]: Incomplete example
References: 1  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8518@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=8781&edit=1 ID: 8781 User updated by: jan dot arild dot andresen at c2i dot net Reported By: jan dot arild dot andresen at c2i dot net -Status: Open +Status: Bogus Id: 8781 Type: Documentation Problem Package: Documentation PHP Version: Irrelevant New Comment: It's working now... Previous Comments: ------------------------------------------------------------------------ [2006-09-25 04:50:26] jan dot arild dot andresen at c2i dot net Description: ------------ The example at http://pear.php.net/manual/en/package.mail.mail.send.php is using an undefined class Test script: --------------- <?php include('mail.php'); $recipients = 'jan.arild.andresen@c2i.net'; $headers['From'] = 'janarild@klubbinfo.no'; $headers['To'] = 'jan.arild.andresen@c2i.net'; $headers['Subject'] = 'Test message'; $body = 'Test message'; $params['sendmail_path'] = '/usr/lib/sendmail'; // Create the mail object using the Mail::factory method $mail_object =& Mail::factory('sendmail', $params); $mail_object->send($recipients, $headers, $body); ?> Actual result: -------------- Fatal error: Class mail_mail: Cannot inherit from undefined class mail in /home/klubbinfo/www/mail.php on line 26 ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=8781&edit=1

« previous php.pear.doc (#8518) next »