Mail update

This commit is contained in:
Torsten Schulz
2023-07-10 12:09:03 +02:00
parent ba5eb88365
commit ae0b96bc9f

View File

@@ -24,7 +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['emailbody'] = $this->mail->textHtml; $this->content['emailbody'] = $this->mail->textHtml ?? $this->mail->textPlain;
$this->content['subject'] = $this->mail->headers->subject; $this->content['subject'] = $this->mail->headers->subject;
$this->renderAttachments($messageStructure); $this->renderAttachments($messageStructure);
} }