note 43358 added to function.imap-bodystruct
| From: | giraldo at nitrogendesign dot com | Date: | Fri, 18 Jun 2004 15:35:02 +0000 |
| Subject: | note 43358 added to function.imap-bodystruct | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-71294@lists.php.net to get a copy of this message | ||
Actually in that last code replace the "1" to "$i" so it should look like the
following:
function getAttachments($mbox,$msgNum){
$structure = imap_fetchstructure($mbox,$msgNum);
$contentParts = count($structure->parts);
if($contentParts > 1){
for($i=1; $i<=$contentParts; $i++){
if($structure->parts[$i]->type > 0){
$attachments .= $structure->parts[$i]->description;
}
}
}
return $attachments;
}
----
Manual Page -- http://www.php.net/manual/en/function.imap-bodystruct.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+43358
Delete -- http://master.php.net/manage/user-notes.php?action=delete+43358&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+43358&report=yes
Search -- http://master.php.net/manage/user-notes.php