php-imap icon indicating copy to clipboard operation
php-imap copied to clipboard

parseBody() returns no content found

Open RafficMohammed opened this issue 3 years ago • 0 comments

Describe the bug I'm trying to fetch mail from rediff mail box. Some emails are providing no content found exception

Code to Reproduce $message->parseBody();

    $mailBodies = $message->getBodies();

    $mailBody = '';

    $isHtmlMail = false;

    if ($mailBodies) {
        $isHtmlMail = !empty($mailBodies['html']);
        $mailBody = ($isHtmlMail) ? $mailBodies['html'] : $mailBodies['text'];
    }
echo "no content found";

Expected behavior A clear and concise description of what you expected to happen.

Screenshots Screenshot from 2022-06-28 15-07-55 .

Desktop / Server (please complete the following information):

  • OS: Ubuntu 20.04 LTS
  • PHP: 7.3
  • Version [e.g. v2.3.1]
  • Provider Rediff

RafficMohammed avatar Jun 28 '22 09:06 RafficMohammed