php-imap
php-imap copied to clipboard
parseBody() returns no content found
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
.
Desktop / Server (please complete the following information):
- OS: Ubuntu 20.04 LTS
- PHP: 7.3
- Version [e.g. v2.3.1]
- Provider Rediff