Bugfix: Now Ampelmail is sending HTML content correctly

...so that the eMail client can parse and display HTML content correctly.

Signed-off-by: cris-technikum <hainberg@technikum-wien.at>
This commit is contained in:
Cris
2021-05-04 16:23:24 +02:00
committed by cris-technikum
parent 7a29d27a79
commit 69b33a7f92
+6
View File
@@ -43,6 +43,12 @@ foreach($ampel->result as $a)
$uid = $row->uid;
$mail = new mail($uid.'@'.DOMAIN, 'cis@'.DOMAIN, $subject, $message);
// If message has HTML content
if($message != strip_tags($message)) {
$mail->setHTMLContent(sprintf('%s', $message));
}
if($mail->send())
echo "Email an $uid versandt\n";
else