Skip to content

Commit

Permalink
Messaging: Recovery password email: use nl2br function to ensure new …
Browse files Browse the repository at this point in the history
…lines in e-mails
  • Loading branch information
nosolored committed Nov 25, 2020
1 parent 41664da commit ab2145e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main/inc/lib/login.lib.php
Expand Up @@ -121,6 +121,7 @@ public static function send_password_to_user($user, $by_username = false)
null,
PERSON_NAME_EMAIL_ADDRESS
);
$email_body = nl2br($email_body);

$email_admin = api_get_setting('emailAdministrator');
$result = api_mail_html('', $email_to, $email_subject, $email_body, $sender_name, $email_admin);
Expand Down

0 comments on commit ab2145e

Please sign in to comment.