Don't pass a MailAddress pass the email to mail()
[lhc/web/wiklou.git] / 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,