--- /dev/null
+<?php
+/***************************************************************************
+ * Copyright (C) 2003-2004 Polytechnique.org *
+ * http://opensource.polytechnique.org/ *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., *
+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
+ ***************************************************************************/
+
+// {{{ class SkinConfig
+
+class NLConfig
+{
+ var $from = "\"Lettre Mensuelle\" <null@example.org>";
+ var $replyto = "null@example.org";
+}
+
+// }}}
+
+$this->newsletter = new NLConfig;
+
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker:
+?>
}
function sendTo($prenom,$nom,$login,$sex,$html) {
+ global $globals;
require_once('diogenes.hermes.inc.php');
+
$mailer = new HermesMailer();
- $mailer->setFrom("\"Lettre Mensuelle Polytechnique.org\" <info_newsletter@polytechnique.org>");
+ $mailer->setFrom($globals->newsletter->from);
$mailer->setSubject($this->title());
$mailer->addTo("\"$prenom $nom\" <$login@polytechnique.org>");
- $mailer->addHeader('Reply-To','info+nlp@polytechnique.org');
+ $mailer->addHeader('Reply-To',$globals->newsletter->replyto);
$mailer->setTxtBody($this->toText($prenom,$nom,$sex));
if($html) {
$mailer->setHTMLBody($this->toHtml($prenom,$nom,$sex,true));
htdocs/newsletter/index.php
htdocs/newsletter/show.php
htdocs/newsletter/submit.php
+include/conf.d/newsletter.globals.inc.php
include/conf.d/newsletter.menu.inc.php
include/newsletter.inc.php
templates/admin/newsletter_edit.tpl