From: Vincent Zanotti Date: Sun, 4 Jul 2010 19:24:06 +0000 (+0200) Subject: Updates the XnetGrp mailer to properly override the To: field, instead X-Git-Tag: xorg/1.0.1~15^2~55 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=c469507db59b540b27125277261fbf3d11243503;p=platal.git 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 --- 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); }