- fix html linebreaks in autoresponder

This commit is contained in:
Michael Kaufmann (d00p)
2010-08-24 11:05:27 +00:00
parent 5d36c7228d
commit def6a7c051

View File

@@ -207,7 +207,8 @@ if($db->num_rows($result) > 0)
$mail->AddReplyTo($to, $to);
$mail->Subject = $row['subject'];
$mail->AltBody = $message;
$mail->MsgHTML(html_entity_decode($message));
$html_message = str_replace("\n", "<br />", $message);
$mail->MsgHTML(html_entity_decode($html_message));
$mail->AddAddress($from, $from);
$mail->AddCustomHeader('Precedence: bulk');
$mail->Send();