- fix html linebreaks in autoresponder
This commit is contained in:
@@ -207,7 +207,8 @@ if($db->num_rows($result) > 0)
|
|||||||
$mail->AddReplyTo($to, $to);
|
$mail->AddReplyTo($to, $to);
|
||||||
$mail->Subject = $row['subject'];
|
$mail->Subject = $row['subject'];
|
||||||
$mail->AltBody = $message;
|
$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->AddAddress($from, $from);
|
||||||
$mail->AddCustomHeader('Precedence: bulk');
|
$mail->AddCustomHeader('Precedence: bulk');
|
||||||
$mail->Send();
|
$mail->Send();
|
||||||
|
|||||||
Reference in New Issue
Block a user