Mail update
This commit is contained in:
@@ -24,6 +24,7 @@ class Mail extends Mailhandling {
|
|||||||
$this->content['sender'] = $this->mail->headers->senderaddress;
|
$this->content['sender'] = $this->mail->headers->senderaddress;
|
||||||
$this->content['receiver'] = $this->mail->headers->toaddress;
|
$this->content['receiver'] = $this->mail->headers->toaddress;
|
||||||
$this->content['senddate'] = (new DateTime($this->mail->date))->format('d.m.Y');
|
$this->content['senddate'] = (new DateTime($this->mail->date))->format('d.m.Y');
|
||||||
|
$this->content['subject'] = $this->mail->headers->subject;
|
||||||
$this->renderAttachments($messageStructure);
|
$this->renderAttachments($messageStructure);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ class Mailhandling extends Renderer {
|
|||||||
|
|
||||||
protected function fetchEmail(): PhpImap\IncomingMail {
|
protected function fetchEmail(): PhpImap\IncomingMail {
|
||||||
$mailsIds = $this->mbox->searchMailbox('ALL');
|
$mailsIds = $this->mbox->searchMailbox('ALL');
|
||||||
|
var_dump($mailsIds);
|
||||||
$mail = $this->mbox->getMail($mailsIds[0]);
|
$mail = $this->mbox->getMail($mailsIds[0]);
|
||||||
var_dump($mail);
|
var_dump($mail);
|
||||||
return $mail;
|
return $mail;
|
||||||
|
|||||||
Reference in New Issue
Block a user