backport
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Thu, 3 Feb 2005 15:40:23 +0000 (15:40 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:28:02 +0000 (23:28 +0200)
Patches applied:

 * opensource@polytechnique.org--2005/platal--release--0.9.4--patch-23
   fix marketing mails

git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-440

htdocs/register/end.php

index 8b5ff63..32c3683 100644 (file)
@@ -102,7 +102,7 @@ while (list($salias, $snom, $sprenom) = $res->next()) {
     $mymail = new HermesMailer();
     $mymail->setSubject("$prenom $nom s'est inscrit à Polytechnique.org !");
     $mymail->setFrom('"Marketing Polytechnique.org" <register@polytechnique.org>');
-    $mymail->addTo("\"$sprenom $snom\" <$alias@{$globals->mail->domain}>");
+    $mymail->addTo("\"$sprenom $snom\" <$salias@{$globals->mail->domain}>");
     $msg = "Cher $sprenom,\n\n"
          . "Nous t'écrivons pour t'informer que {$prenom} {$nom} (X{$promo}), "
          . "que tu avais incité à s'inscrire à Polytechnique.org, "