[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pear-doc
Subject:    [PEAR-DOC] [PEAR-BUG] Doc #8781 [Opn->Bgs]: Incomplete example
From:       "jan dot arild dot andresen at c2i dot net" <pear-doc () lists ! php ! net>
Date:       2006-09-25 9:28:10
Message-ID: 20060925092810.1806.qmail () pb12 ! pair ! com
[Download RAW message or body]

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

-- 
PEAR Documentation List Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic