Merge "Don't pass a MailAddress pass the email to mail()"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 20 Oct 2018 20:34:23 +0000 (20:34 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 20 Oct 2018 20:34:23 +0000 (20:34 +0000)
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,