Commit 24737ffe authored by Celine Noirot's avatar Celine Noirot
Browse files

mail correction

parent 1b1469fb
......@@ -105,28 +105,28 @@ class tx_nG6_pi6 extends tslib_pibase {
function send_purge_demand_mail($user_id,$project_ids) {
$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 is coming to end.
Dear user,
This purge alert No ###DEMAND_ID### corresponds to ###STORAGE_SIZE### (see below for more details)
The two years data storage time limit of your ###PROJECT_NAME### project (###nb_run### run(s) and ###nb_analyse### analyse(s)) is coming to end.
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:
This purge alert No ###DEMAND_ID### corresponds to ###STORAGE_SIZE### (see below files impacted).
In ###PURGE_DELAY### days, your data will be deleted. Keep us informed if you wish to extend the storage period, please have a look at our prices (http://bioinfo.genotoul.fr/index.php/resources-2/pricing/) and reply to this email with the following information:
----------------------------------------------
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:
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 (for GeT-Genotoul and Bioinfo-Genotoul facilities)
Files details:
* runs names: ###RUNS_LIST###
* analyses ids: ###ANALYSES_LIST###
Files impacted of:
- runs names: ###RUNS_LIST###
- analyses ids: ###ANALYSES_LIST###
';
$project_name="";
$txNG6Utils = new tx_nG6_utils;
......@@ -152,7 +152,7 @@ Files details:
$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.\n";
$email_warn="Be aware that 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.\n";
......@@ -192,7 +192,7 @@ Files details:
$headers[] = 'From: '.$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['ng6']['email_from'];
$headers[] = 'X-Mailer: PHP/' . phpversion();
#TODO Uncomment
#$to = "celine.noirot@inra.fr";
$to = "celine.noirot@inra.fr";
mail($to, $subject, $mail, implode("\r\n", $headers));
}
return implode("\r\n", $headers).$mail;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment