From 01d96c5508661764fb5caf83bfc2a52479de0be0 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Thu, 20 May 2004 03:04:14 +0000 Subject: [PATCH] fix bug 956984 : duplicate to: header. One fix is not tested but I added comments --- includes/UserMailer.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/UserMailer.php b/includes/UserMailer.php index 45e071c488..6704a82ccb 100644 --- a/includes/UserMailer.php +++ b/includes/UserMailer.php @@ -17,7 +17,9 @@ function userMailer( $to, $from, $subject, $body ) $timestamp = time(); $headers["From"] = $from; - $headers["To"] = $qto; +/* removing to: field as it should be set by the send() function below + UNTESTED - Hashar */ +// $headers["To"] = $qto; $headers["Subject"] = $subject; $headers["MIME-Version"] = "1.0"; $headers["Content-type"] = "text/plain; charset={$wgOutputEncoding}"; @@ -47,7 +49,6 @@ function userMailer( $to, $from, $subject, $body ) "Content-transfer-encoding: 8bit\r\n" . "From: {$from}\r\n" . "Reply-To: {$from}\r\n" . - "To: {$qto}\r\n" . "X-Mailer: MediaWiki interuser e-mailer"; $wgErrorString = ""; -- 2.20.1