From: Reedy Date: Sat, 20 Oct 2018 12:37:15 +0000 (+0100) Subject: Don't pass a MailAddress pass the email to mail() X-Git-Tag: 1.34.0-rc.0~3715^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=c57aacb782f5ce5e53253192a53d736ece300d3c;ds=sidebyside Don't pass a MailAddress pass the email to mail() Bug: T207541 Change-Id: I1516023907e9773cb093010c6b67279f695abb1a --- diff --git a/includes/mail/UserMailer.php b/includes/mail/UserMailer.php index 5d7afd31db..102d61599c 100644 --- a/includes/mail/UserMailer.php +++ b/includes/mail/UserMailer.php @@ -430,7 +430,7 @@ class UserMailer { try { foreach ( $to as $recip ) { $sent = mail( - $recip, + $recip->toString(), self::quotedPrintable( $subject ), $body, $headers,