Attached without Attachment
| From: | Gustavo - Emar Plásticos | Date: | Wed, 28 Sep 2011 16:15:08 +0000 |
| Subject: | Attached without Attachment | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-315045@lists.php.net to get a copy of this message | ||
Hi all, i made a code in PHP to save in a directory the XML attachments !
All goes well until it comes across an email that has attachment but can not save !
analyzing the source code of this email, i realized it has no line:
Content-Disposition: attachment; filename="name of the file.xml"
but only this line:
Content-Type: application/octet-stream; name=name of file.xml
Content-Transfer-Encoding: base64
I´m using IMAP and the account is from Google: $host = "{imap.gmail.com:993/imap/ssl}INBOX";
What happend ?
Thanks any help
Gustave