server: when send HTML email, use charset=UTF-8

This commit is contained in:
David Anderson 2019-04-16 15:59:51 -07:00
parent 18dc48ac2a
commit 80211ec5d0
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ function send_email($user, $subject, $body, $body_html=null, $email_addr=null) {
$body = "<html><body>\n";
$body = $body_html;
$body .= "\n</body></html>\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n";
}
return mail($email_addr, $subject, $body, $headers);
}