Clivern / Imap

:mailbox_with_mail: Access Mailbox Using PHP IMAP.
MIT License
31 stars 16 forks source link

PDF messages without body #12

Closed LMNYX closed 4 years ago

LMNYX commented 5 years ago

When i read with pdf attachment and body text in $message->body()->getMessage() i see only %PDF (a lot of special symbols) %EOF. That's all. No body text.

LMNYX commented 5 years ago

also with any attachment image

Clivern commented 5 years ago

do you face a problem with message body, attachment or both what if you store the attachment, is it corrupted?

$attachments = $message->attachments();
foreach ($attachments as $attachment) {
    // Store attachment in provided path
    $attachment->store(__DIR__ . '/');
}

I guess it is something to do with encoding

Clivern commented 4 years ago

No activity so i am closing this issue, @JackGlow feel free to reopen or create another.