* 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);
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));