From c469507db59b540b27125277261fbf3d11243503 Mon Sep 17 00:00:00 2001 From: Vincent Zanotti Date: Sun, 4 Jul 2010 21:24:06 +0200 Subject: [PATCH] Updates the XnetGrp mailer to properly override the To: field, instead of appending addresses to it (as the PlMailer there is reused, this caused some O(n^2) email duplication). Signed-off-by: Vincent Zanotti --- modules/xnetgrp/mail.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/xnetgrp/mail.inc.php b/modules/xnetgrp/mail.inc.php index a8518fb..eadeb16 100644 --- a/modules/xnetgrp/mail.inc.php +++ b/modules/xnetgrp/mail.inc.php @@ -67,7 +67,7 @@ function _send_xnet_mail($user, $body, $wiki, $mailer, $replyto = null) $text = str_ireplace(array('', '', ''), array($dear, $lastname, $firstname), $body); - $mailer->addTo($user); + $mailer->setTo($user); if ($replyto) { $mailer->addHeader('Reply-To', $replyto); } -- 2.1.4