Bug #4984 [NEW]: Mail_mimePart addSubPart Example error

From: Date: Wed, 03 Aug 2005 12:39:43 +0000
Subject: Bug #4984 [NEW]: Mail_mimePart addSubPart Example error
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-6587@lists.php.net to get a copy of this message
From: ladell at sitrack dot com Operating system: windows 2000 professional PHP version: 4.3.9 Package: Documentation Bug Type: Bug Bug description: Mail_mimePart addSubPart Example error Description: ------------ I'm trying to read a pop3 email and resend it, I have the headers and parts, when I read the example "Example 44-1. Add twoattachments to a mail " I believe that threre is something wrong at the end of the example ----------------------------------------------- // Now build the email. Note that the encode // function returns an associative array containing two // elements, body and headers. You will need to add extra // headers, (eg. Mime-Version) before sending. $email = $message->encode(); $email['headers']['Mime-Version'] = '1.0'; ... ----------------------------------------------- what is "$message"? Is it an mail object, a mail_mime object or what? Can you send me the rest of the example showing how can I compose the entire email an send it? -- Edit bug report at http://pear.php.net/bugs/bug.php?id=4984&edit=1 --

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