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  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
2006-09-25 09:28 UTC
Package:
Bug Type:
Summary:
From: jan dot arild dot andresen at c2i dot net
New email:
PHP Version: Package Version: OS:

 

 [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...