X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fxnetgrp%2Fmail.inc.php;h=eadeb167a0eb80c4cc27e02333d67cd8ccb4fe4f;hb=38984ab07f8c2d2e1dbb401be05cfcc57f71b27c;hp=a8518fb6686876c090bbed1d60796f037cd56dc7;hpb=965221bf940fc9b3855e2aa0dd16088c225feedf;p=platal.git 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); }