From c57aacb782f5ce5e53253192a53d736ece300d3c Mon Sep 17 00:00:00 2001 From: Reedy Date: Sat, 20 Oct 2018 13:37:15 +0100 Subject: [PATCH] Don't pass a MailAddress pass the email to mail() Bug: T207541 Change-Id: I1516023907e9773cb093010c6b67279f695abb1a --- includes/mail/UserMailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.20.1