PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Mail » Mail_Mime » Bug #4984

Mail_mimePart addSubPart Example error

Details

Submitted2005-08-03 12:39 UTC
Fromladell at sitrack dot com
Assignedcipri
StatusClosed
PackageMail_Mime
PHP Version4.3.9
OSwindows 2000 professional
Roadmaps(Not assigned)

Comments

[2005-08-03 12:39 UTC] ladell at sitrack dot com

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?