X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fmarketing.inc.php;h=e91b730054aee1d07747321aeb5c4bdede36f6e9;hb=f036c8966e64d9f2bb3923bbeb278353bc7e1083;hp=28fc7e6fecce4cfc027bed8e9ffc2d5f9d6fb8ce;hpb=26ba053e75092d038f571b77eaf3005509da0648;p=platal.git diff --git a/include/marketing.inc.php b/include/marketing.inc.php index 28fc7e6..e91b730 100644 --- a/include/marketing.inc.php +++ b/include/marketing.inc.php @@ -67,8 +67,8 @@ class Marketing 'sexe' => $user->isFemale(), 'mail' => $email, 'to' => '"' . $user->fullName() . '" <' . $email . '>', - 'forlife_email' => $user->login() . '@' . $globals->mail->domain, - 'forlife_email2' => $user->login() . '@' . $globals->mail->domain2, + 'forlife_email' => $user->forlifeEmail(), + 'forlife_email2' => $user->forlifeEmailAlternate() ); } @@ -217,7 +217,7 @@ class Marketing $mymail->assign('baseurl', $globals->baseurl); $mymail->assign('lins_id', $hash); $mymail->assign('lemail', $email); - $mymail->assign('subj', $alias.'@'.$globals->mail->domain); + $mymail->assign('subj', ucfirst($globals->mail->domain) . ' : ' . $alias); $mymail->send(); XDB::execute('UPDATE register_pending SET hash={?}, password={?}, relance=NOW()