diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 366fe997..dd0b010b 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -935,12 +935,12 @@ function sendPasswordMail($pwd, $user, $recipient = null) { if ($mailReplyTo != '') { $headerLines .= 'Reply-To: ' . $mailReplyTo . "\r\n"; } + $headerLines .= "MIME-Version: 1.0\r\n"; if ($mailIsHTML == 'true') { - $headerLines .= "MIME-Version: 1.0\r\n"; $headerLines .= "Content-type: text/html; charset=UTF-8\r\n"; } else { - $headerLines .= "Content-type: text; charset=UTF-8\r\n"; + $headerLines .= "Content-type: text/plain; charset=UTF-8\r\n"; } $success = mail($mailTo, $subject, $body, $headerLines); if ($success) {