Skip to content

Commit 9045168

Browse files
author
Herbie (Christian) Keuerleber
committed
use text output if no html is available
1 parent 745f75c commit 9045168

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Classes/Domain/Model/Mail.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ public function __construct(array $mailData)
4343
$this->mailData = $mailData;
4444

4545
$this->body = Arrays::getValueByPath($this->mailData, 'HTML');
46+
if ($this->body === '') {
47+
$this->body = Arrays::getValueByPath($this->mailData, 'Text');
48+
}
4649
$this->recipients = Arrays::getValueByPath($this->mailData, 'To');
4750
$this->subject = Arrays::getValueByPath($this->mailData, 'Subject');
4851
}

0 commit comments

Comments
 (0)