From e176e60c21f368cf1bf69d89d01534ce2559b81e Mon Sep 17 00:00:00 2001 From: Torsten Schulz Date: Mon, 3 Jul 2023 12:37:40 +0200 Subject: [PATCH] Mail read out changed --- include/mailhandling.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);