diff --git a/include/mail.php b/include/mail.php index 0d9ebaa..f8712c2 100644 --- a/include/mail.php +++ b/include/mail.php @@ -24,6 +24,7 @@ class Mail extends Mailhandling { $this->content['sender'] = $this->mail->headers->senderaddress; $this->content['receiver'] = $this->mail->headers->toaddress; $this->content['senddate'] = (new DateTime($this->mail->date))->format('d.m.Y'); + $this->content['subject'] = $this->mail->headers->subject; $this->renderAttachments($messageStructure); } diff --git a/include/mailhandling.php b/include/mailhandling.php index 44d3612..cf879b6 100644 --- a/include/mailhandling.php +++ b/include/mailhandling.php @@ -13,6 +13,7 @@ class Mailhandling extends Renderer { protected function fetchEmail(): PhpImap\IncomingMail { $mailsIds = $this->mbox->searchMailbox('ALL'); + var_dump($mailsIds); $mail = $this->mbox->getMail($mailsIds[0]); var_dump($mail); return $mail;