Doc #8781 [NEW]: Incomplete example

From: Date: Mon, 25 Sep 2006 08:50:26 +0000
Subject: Doc #8781 [NEW]: Incomplete example
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8516@lists.php.net to get a copy of this message
From: jan dot arild dot andresen at c2i dot net Operating system: Package version: PHP version: Irrelevant Package: Documentation Bug Type: Documentation Problem Bug description: Incomplete example 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 bug report at http://pear.php.net/bugs/bug.php?id=8781&edit=1 --

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