mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-16 22:42:16 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user