$template_mail='Mail automatique / en phase de TEST
Dear user,
The data storage time limit of ###nb_run### run(s) and ###nb_analyse### analyse(s) of ###PROJECT_NAME### project (###PROJET_ID###) is coming to end.
The data storage time limit of ###nb_run### run(s) and ###nb_analyse### analyse(s) of ###PROJECT_NAME### project is coming to end.
This purge alert number ###DEMAND_ID### corresponds to the files (size : ###STORAGE_SIZE###) linked to the following
* runs names: ###RUNS_LIST###
* analyses ids: ###ANALYSES_LIST###
This purge alert No ###DEMAND_ID### corresponds to ###STORAGE_SIZE### (see below for more details)
In ###PURGE_DELAY### days, your data will be delete. Until then, you can save them by your own, or ask for extention period with number ###DEMAND_ID###.
In ###PURGE_DELAY### days, your data will be delete. Keep us informed if you wish to extend the storage period by answering to this email with following this informations:
###EMAILS###Keep us informed if you wish to extend the storage so that we do not delete the data by error, by answering to this email with following this informations :
Demand number: ###DEMAND_ID###
Request for extension term: XXX (minimal unit: ###EXTENSION_DURATION###)
Request for extension size: XXX (mininal unit: ###EXTENSION_SIZE###)
Laboratory name/Institution:
Demand number : ###DEMAND_ID###
Extension term (min ###EXTENSION_DURATION###) :
Extension size (min ###EXTENSION_SIZE###) :
Price for ###EXTENSION_SIZE### during ###EXTENSION_DURATION### is about ###EXTENSION_PRICE###.
Prices are available at ###EXTENSION_URL_PRICES###.
###EMAILS###It would be appreciable if you could group your demand by laboratory.
Yours sincerely
nG6 team';
nG6 team
Files details:
* runs names: ###RUNS_LIST###
* analyses ids: ###ANALYSES_LIST###
';
$project_name="";
$txNG6Utils=newtx_nG6_utils;
foreach(explode(",",$project_ids)as$project_id){
...
...
@@ -143,19 +148,19 @@ nG6 team';
$admin_name[]=$u["user_name"];
}
}
#Warn if mail is sent to several manager
$email_warn="";
$purge_email_to="";
if(count($managers_email)>1){
$email_warn="This project is associated to several managers (all recieved this email), please send only one answer per purge alert number.(".join(',',$managers_email).")\n";
if(count($managers_email)>=1){
$email_warn="This project is associated to several managers (all recieved this email), please send only one answer per purge alert number.\n";
$purge_email_to=join(',',$managers_email);
}elseif(count($managers_email==0)){
$email_warn="As this project do not have managers, administrators recieved this alert (".join(',',$admin_email).")\n";
$email_warn="As this project do not have managers, administrators recieved this alert.\n";