X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fvalidations%2Fpaiements.inc.php;h=2612f3bf7403487b8ee66df9406fa85302ef2e33;hb=1f58ccb1e75eca08fbd04971d617ea372bc77b5a;hp=bb3afe49481e18ddb437ddc755883edd46a5d2d0;hpb=4f494e74bb1310de55ce335324a966e31b6c72cb;p=platal.git diff --git a/include/validations/paiements.inc.php b/include/validations/paiements.inc.php index bb3afe4..2612f3b 100644 --- a/include/validations/paiements.inc.php +++ b/include/validations/paiements.inc.php @@ -201,7 +201,12 @@ Si le télépaiement n'est pas lié à un groupe ou supérieur à 51 euros, lais $mailer->assign('payment', $id); $mailer->assign('prenom', $u['prenom']); $mailer->assign('topay', $topay); - $mailer->assign('to', $u['email']); + + if (strpos($u['email'], '@') === false) { + $mailer->assign('to', $u['email'] . '@' . $globals->mail->domain); + } else { + $mailer->assign('to', $u['email']); + } $mailer->send(); } }