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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user