old behaviour
authorx2000habouzit <x2000habouzit>
Tue, 2 Nov 2004 19:40:41 +0000 (19:40 +0000)
committerx2000habouzit <x2000habouzit>
Tue, 2 Nov 2004 19:40:41 +0000 (19:40 +0000)
include/newsletter.inc.php

index f906546..3edcd84 100644 (file)
@@ -18,7 +18,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: newsletter.inc.php,v 1.28 2004-11-02 11:41:33 x2000habouzit Exp $
+        $Id: newsletter.inc.php,v 1.29 2004-11-02 19:40:41 x2000habouzit Exp $
  ***************************************************************************/
 
 define('FEMME', 1);
@@ -256,10 +256,11 @@ EOF;
     function sendTo($prenom,$nom,$forlife,$sex,$html) {
        require_once('diogenes.mailer.inc.php');
        $fullname = "=?ISO-8859-1?Q?".quoted_printable_encode(str_replace(' ','_',"$prenom $nom"),200)."?=";
-       $mailer = new DiogenesMailer("Lettre Mensuelle Polytechnique.org <info+nlp@polytechnique.org>",
-                                    replace_accent("$fullname <$forlife@polytechnique.org>"),
+       $mailer = new DiogenesMailer("Lettre Mensuelle Polytechnique.org <newsletter@polytechnique.org>",
+                                    "$fullname <$forlife@polytechnique.org>",
                                     $this->title(true),
                                     $html);
+       $mailer->addHeader("Reply-To: info+nlp@polytechnique.org");
        if($html) {
            $mailer->addPart('text/plain; charset=iso-8859-1', 'iso-8859-1', $this->toText($prenom,$nom,$sex));
            $mailer->addPart('text/html; charset=iso-8859-1', 'iso-8859-1', $this->toHtml($prenom,$nom,$sex,true));