[Fusionforge-commits] r9308 - trunk/plugins/coclico/mailman/www

Christian Bayle cbayle at libremir.placard.fr.eu.org
Tue Mar 30 20:18:17 CEST 2010


Author: cbayle
Date: 2010-03-30 20:18:17 +0200 (Tue, 30 Mar 2010)
New Revision: 9308

Modified:
   trunk/plugins/coclico/mailman/www/mailman_utils.php
Log:
Implements List Creation mail


Modified: trunk/plugins/coclico/mailman/www/mailman_utils.php
===================================================================
--- trunk/plugins/coclico/mailman/www/mailman_utils.php	2010-03-30 18:18:09 UTC (rev 9307)
+++ trunk/plugins/coclico/mailman/www/mailman_utils.php	2010-03-30 18:18:17 UTC (rev 9308)
@@ -17,14 +17,34 @@
 $current_user=UserManager::instance()->getCurrentUser();
 
 
-function sendCreationMail($userEmail,$listname,$listpassword) {
+function sendCreationMail($userEmail,&$list) {
+ $message = sprintf(_('A mailing list will be created on %1$s in few minutes 
+and you are the list administrator.
 
-	//$message = $Language->getText('mail_admin_index','list_create_explain',array($GLOBALS['sys_name'], $listname.'@' .$GLOBALS['sys_lists_host'],$list_server."/mailman/listinfo/$listname",$list_server."/mailman/admin/$list_name",$listpassword));
+This list is: %3$s@%2$s .
 
+Your mailing list info is at:
+%4$s .
+
+List administration can be found at:
+%5$s .
+
+Your list password is: %6$s .
+You are encouraged to change this password as soon as possible.
+
+Thank you for registering your project with %1$s.
+
+-- the %1$s staff
+'), $GLOBALS['sys_name'], $GLOBALS['sys_lists_host'], $list->getName(), $list->getExternalInfoUrl(), 'http://'.$GLOBALS['sys_lists_host'].'/mailman/admin/'.$this->getName(), $list->getPassword());
+       $mailSubject = sprintf(_('%1$s New Mailing List'), $GLOBALS['sys_name']);
+
+
+
+
 	$hdrs = "From: ".$GLOBALS['sys_email_admin'].$GLOBALS['sys_lf'];
 	$hdrs .='Content-type: text/plain; charset=utf-8'.$GLOBALS['sys_lf'];
 
-	//mail ($userEmail,$GLOBALS['sys_name']." ".$Language->getText('mail_admin_index','new_mail_list'),$message,$hdrs);
+	mail ($userEmail,$mailSubject,$message,$hdrs);
 
 
 }




More information about the Fusionforge-commits mailing list