replace correct line-break when sending forgotten password, fixes #507

This commit is contained in:
Michael Kaufmann (d00p)
2010-12-05 17:15:24 +00:00
parent 56e9f748f4
commit 16cc53146c

View File

@@ -336,7 +336,7 @@ if($action == 'forgotpwd')
try {
$mail->Subject = $mail_subject;
$mail->AltBody = $mail_body;
$mail->MsgHTML(str_replace("\\n", "<br />", $mail_body));
$mail->MsgHTML(str_replace("\n", "<br />", $mail_body));
$mail->AddAddress($user['email'], $user['firstname'] . ' ' . $user['name']);
$mail->Send();
} catch(phpmailerException $e) {