From ae0b96bc9f4722dac9f0319be521750aed4733c6 Mon Sep 17 00:00:00 2001 From: Torsten Schulz Date: Mon, 10 Jul 2023 12:09:03 +0200 Subject: [PATCH] Mail update --- include/mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mail.php b/include/mail.php index d772033..d4b0c80 100644 --- a/include/mail.php +++ b/include/mail.php @@ -24,7 +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['emailbody'] = $this->mail->textHtml; + $this->content['emailbody'] = $this->mail->textHtml ?? $this->mail->textPlain; $this->content['subject'] = $this->mail->headers->subject; $this->renderAttachments($messageStructure); }