Mail update

This commit is contained in:
Torsten Schulz
2023-07-10 13:44:27 +02:00
parent 772cc0aaf2
commit f9e7af7377

View File

@@ -26,10 +26,10 @@ class Mail extends Mailhandling {
$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->mail->textPlain; $this->content['emailbody'] = $this->mail->textHtml ?? $this->mail->textPlain;
$this->content['subject'] = $this->mail->subject; $this->content['subject'] = $this->mail->subject;
$this->renderAttachments($messageStructure); $this->renderAttachments();
} }
protected function renderAttachments($messageStructure): void { protected function renderAttachments(): void {
$attachments = $this->mail->getAttachments(); $attachments = $this->mail->getAttachments();
$contentArray = []; $contentArray = [];
foreach ($attachments as $attachment) { foreach ($attachments as $attachment) {