Home » Mail » Mail_Mime » Bug #4984
Mail_mimePart addSubPart Example error
Details
| Submitted | 2005-08-03 12:39 UTC |
|---|---|
| From | ladell at sitrack dot com |
| Assigned | cipri |
| Status | Closed |
| Package | Mail_Mime |
| PHP Version | 4.3.9 |
| OS | windows 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?