- set correct html-linebreaks when sending e-mails

- disallow email-add form when no (email-)domain is added yet
This commit is contained in:
Michael Kaufmann (d00p)
2010-03-05 07:13:00 +00:00
parent b5465f602f
commit 491e5363a7
6 changed files with 29 additions and 16 deletions

View File

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