note 82766 added to function.imap-fetchbody
| From: | fortega dot nospamplz at uamericas dot net | Date: | Thu, 24 Apr 2008 20:37:52 +0000 |
| Subject: | note 82766 added to function.imap-fetchbody | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-138751@lists.php.net to get a copy of this message | ||
To fetch the body of a "sub part" do the following thing:
<?php
$partno = "2.1" // The first part of the second part
print_r(imap_fetchbody($mbox, $msgno, $partno));
// TODO: replace print_r for the proper function
?>
And remember... you can fetch the structure with
<?php
imap_fetchstructure($mbox, $msgno);
?>
then iterate the array of parts fetching the body.
----
Server IP: 69.147.83.197
Probable Submitter: 200.73.65.138 (proxied: 127.0.0.1)
----
Manual Page -- http://www.php.net/manual/en/function.imap-fetchbody.php
Edit -- https://master.php.net/note/edit/82766
Del: integrated -- https://master.php.net/note/delete/82766/integrated
Del: useless -- https://master.php.net/note/delete/82766/useless
Del: bad code -- https://master.php.net/note/delete/82766/bad+code
Del: spam -- https://master.php.net/note/delete/82766/spam
Del: non-english -- https://master.php.net/note/delete/82766/non-english
Del: in docs -- https://master.php.net/note/delete/82766/in+docs
Del: other reasons-- https://master.php.net/note/delete/82766
Reject -- https://master.php.net/note/reject/82766
Search -- https://master.php.net/manage/user-notes.php