Don't pass a MailAddress pass the email to mail()
authorReedy <reedy@wikimedia.org>
Sat, 20 Oct 2018 12:37:15 +0000 (13:37 +0100)
committerReedy <reedy@wikimedia.org>
Sat, 20 Oct 2018 15:23:04 +0000 (15:23 +0000)
Bug: T207541
Change-Id: I1516023907e9773cb093010c6b67279f695abb1a

includes/mail/UserMailer.php

index 5d7afd3..102d615 100644 (file)
@@ -430,7 +430,7 @@ class UserMailer {
                        try {
                                foreach ( $to as $recip ) {
                                        $sent = mail(
-                                               $recip,
+                                               $recip->toString(),
                                                self::quotedPrintable( $subject ),
                                                $body,
                                                $headers,