Mail update

This commit is contained in:
Torsten Schulz
2023-07-10 11:56:52 +02:00
parent 09f5e1b319
commit 3be5858fe2
2 changed files with 2 additions and 0 deletions

View File

@@ -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);
}

View File

@@ -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;