Bug #4782 [NEW]: Mail_mimePart::addsubpart() - wrong variable in example
| From: | t dot hadek at gmx dot at | Date: | Sun, 10 Jul 2005 15:32:31 +0000 |
| Subject: | Bug #4782 [NEW]: Mail_mimePart::addsubpart() - wrong variable in example | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-6494@lists.php.net to get a copy of this message | ||
From: t dot hadek at gmx dot at
Operating system:
PHP version: Irrelevant
Package: Documentation
Bug Type: Bug
Bug description: Mail_mimePart::addsubpart() - wrong variable in example
Description:
------------
In the example of PEAR Mail_mimePart::addsubpart()
in "Example 44-1. Add two attachments to a mail"
the line to add the second attachment uses the
wrong variable name ($body) instead of ($attach).
wrong line (in example documentation):
$attach =& $email->addSubPart($body, $params);
should be:
$attach =& $email->addSubPart($attach, $params);
or:
$dummy =& $email->addSubPart($attach, $params);
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=4782&edit=1
--