Skip to content

[BUG] For some emails, the body is empty #712

Open
@tsschulz

Description

@tsschulz

Environment (please complete the following information):

  • PHP IMAP version: 8.1
  • PHP Version: 8.1
  • Type of execution: Daemon

For some emails (seems like when they are send from Mac), the body is empty, for html and also for plain.

The used code:

$this->mail->textHtml ?? $this->mail->textPlain;

var_dump($this->mail):

object(PhpImap\IncomingMail)#7 (45) {
  ["id"]=>
  int(133)
  ["imapPath"]=>...
  }
  ["textPlain":"PhpImap\IncomingMail":private]=>
  NULL
  ["textHtml":"PhpImap\IncomingMail":private]=>
  NULL
}

Expected behavior
Email body has text in it, because in email client for the same email there is a body

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs investigationThis will be tested / debugged or checked out.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions