diff --git a/include/mailhandling.php b/include/mailhandling.php index b5f215a..2dfb76e 100644 --- a/include/mailhandling.php +++ b/include/mailhandling.php @@ -12,7 +12,8 @@ class Mailhandling extends Renderer { } protected function fetchEmailHeader(array &$content): void { - $header = imap_headerinfo($this->mbox, $this->uid); + $mail = $this->mbox->getMail($this->uid); + var_dump($mail);die; $content['sender'] = imap_utf8($header->fromaddress); $content['receiver'] = imap_utf8($header->toaddress); $content['subject'] = imap_utf8($header->subject);