Re: Attached without Attachment
| From: | Sean Greenslade | Date: | Fri, 30 Sep 2011 17:12:45 +0000 |
| Subject: | Re: Attached without Attachment | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-315085@lists.php.net to get a copy of this message | ||
On Wed, Sep 28, 2011 at 12:15 PM, Gustavo - Emar Plásticos <
suporte@emar.com.br> wrote:
> 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<http://imap.gmail.com:993/imap/ssl%7DINBOX>
> ";
>
> What happend ?
> Thanks any help
>
> Gustave
>
My suspicion is that the email contained no actual text body, so google
converted the entire email message into the attachment (in octet-stream
format).
Unfortunately, email is only somewhat standardized. You'll have to make your
programs deal with these sort of oddities, as they'll be inevitable.
--
--Zootboy
Sent from my PC.