Enforcing the "email type" (text/HTML) user setting at core library level.

With well-written client code this should not be needed, but after getting
burned once I think it's a good idea to make it "smart".
This commit is contained in:
defacer
2005-02-05 01:36:55 +00:00
parent 673c1b2f13
commit 756e182362
+1 -1
View File
@@ -2717,7 +2717,7 @@ function email_to_user($user, $from, $subject, $messagetext, $messagehtml='', $a
}
}
if ($messagehtml) {
if ($messagehtml && $user->mailformat == 1) { // Don't ever send HTML to users who don't want it
$mail->IsHTML(true);
$mail->Encoding = 'quoted-printable'; // Encoding to use
$mail->Body = $messagehtml;