X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fregister%2Fregister.inc.php;h=1bc4ce85148e1c9dcd4b9c67f7028925cebcd2af;hb=d7dd70be3dd8f76ae6dc9fed7977e7aa7b603085;hp=e0458fe3d7811c0fc5bbcbaa28d540d48d6b315d;hpb=483fb3124f63ac5a7b5e25b4168fc3f6b9954ea4;p=platal.git
diff --git a/modules/register/register.inc.php b/modules/register/register.inc.php
index e0458fe..1bc4ce8 100644
--- a/modules/register/register.inc.php
+++ b/modules/register/register.inc.php
@@ -158,7 +158,8 @@ function create_aliases (&$sub)
$res = XDB::query('SELECT COUNT(*) FROM aliases WHERE alias={?}', $forlife);
if ($res->fetchOneCell() > 0) {
return "Tu as un homonyme dans ta promo, il faut traiter ce cas manuellement.
".
- "envoie un mail à support@polytechnique.org en expliquant ta situation.";
+ "envoie un mail à mail->domain}\">" .
+ "support@{$globals->mail->domain} en expliquant ta situation.";
}
$res = XDB::query('SELECT id, type, expire FROM aliases WHERE alias={?}', $mailorg);
@@ -175,10 +176,10 @@ function create_aliases (&$sub)
$als = $res->fetchColumn();
$mailer = new PlMailer();
- $mailer->setFrom('"Support Polytechnique.org" ');
- $mailer->addTo("$mailorg@polytechnique.org");
+ $mailer->setFrom('"Support Polytechnique.org" mails->domain . '>');
+ $mailer->addTo("$mailorg@" . $globals->mails->domain);
$mailer->setSubject("perte de ton alias $mailorg dans un mois !");
- $mailer->addCc('"Support Polytechnique.org" ');
+ $mailer->addCc('"Support Polytechnique.org" mails->domain . '>');
$msg =
"Bonjour,\n\n".
@@ -245,7 +246,7 @@ function finish_ins($sub_state)
$mymail->assign('pass', $pass);
$mymail->assign('baseurl', $globals->baseurl);
$mymail->assign('hash', $hash);
- $mymail->assign('subj', $bestalias."@polytechnique.org");
+ $mymail->assign('subj', $bestalias."@" . $globals->mails->domain);
$mymail->send();
}