note 13919 added to function.imap-fetchbody.php
| From: | pmzandbergen at yahoo dot com | Date: | Tue, 10 Jul 2001 11:56:56 +0000 |
| Subject: | note 13919 added to function.imap-fetchbody.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15159@lists.php.net to get a copy of this message | ||
Nice function above. However, there are some webmail (normaly plain text) services like you which
don't use structure type 'ATTACHMENT' with the attachments, but 'INLINE'
(also plain text is called like this). Just replace
if (strtoupper ($structure->disposition) == "ATTACHMENT"){
with
if (strtoupper ($structure->disposition) == "ATTACHMENT" || strtoupper
($structure->disposition) == "INLINE" && strtoupper ($structure->subtype) !=
"PLAIN") {
But remember, when uou send a message with plaintext & attachment, also the plaintext is an
attachment
http://www.php.net/manual/en/function.imap-fetchbody.php