<?php
/***************************************************************************
- * Copyright (C) 2003-2008 Polytechnique.org *
+ * Copyright (C) 2003-2009 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
$info_client = Array(
'first_name' => S::v('prenom'),
'last_name' => $name,
- 'email' => S::v('bestalias').'@' . $globals->mail->domain);
+ 'email' => S::user()->bestEmail());
$res = XDB::query(
"SELECT a.adr1 AS address1, a.adr2 AS address2,