0

I have reading mail from IMAP in php.

when i reading mail from IMAP it works fine.

But when mail is with attachment then message body is unreadable however attachment downloading working fine.

Parth Bhatti
  • 468
  • 1
  • 7
  • 19
  • 1
    Possible duplicate of [PHP IMAP decoding messages](https://stackoverflow.com/questions/15539902/php-imap-decoding-messages) – Matt Jun 05 '17 at 15:40
  • no this logic is not working when mail has attachments – Parth Bhatti Jun 05 '17 at 15:44
  • check the encoding type of the content text a normall text email does not use multipart encoding but attached emails do but with the attachment there are mime types and text encoding it could be your text is received as UTF16 and you need it in UTF8. – Barkermn01 Jun 06 '17 at 14:27

0 Answers0