Report new bug | New search | Development Roadmap Status: Open | Feedback | All

Doc Bug #8781 Incomplete example
Submitted: 2006-09-25 08:50 UTC
From: jan dot arild dot andresen at c2i dot net Assigned:
Status: Bogus Package: Documentation
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2006-09-25 08:50 UTC] jan dot arild dot andresen at c2i dot net (Jan Arild Andresen)
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

Comments

 [2006-09-25 09:28 UTC] jan dot arild dot andresen at c2i dot net
It's working now...