Voting

: min(three, seven)?
(Example: nine)

The Note You're Voting On

ac at artcenter dot ac
23 years ago
Lets say your email has this structure:
1 multipart
plain
html
2 x-vcard
and... you can't seem to figure out how to get either plain or HTML part of the multipart message? have you been going through all the trouble looking for a PHP mime parser? well here is a simple solution which SHOULD BE documented in this manual. From example above, if you want to get the plain part of the "multipart" message do this:
$text=imap_fetchbody($mbox,$msg_num,"1.1");
all you do is instead of part number 1, put 1.1 or to get the HTML part put 1.2

EASY!

<< Back to user notes page

To Top