- Timestamp:
- Oct 17, 2009, 4:47:20 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Mail_supervisor/include/function_test_send.php
r4051 r4054 31 31 function test_envoie($message,$group_name,$group_id) 32 32 { 33 global $infos_message,$erreur_message ,$conf,$user,$conf_mail,$mail_données,$args ;33 global $infos_message,$erreur_message ,$conf,$user,$conf_mail,$mail_données,$args,$lang ; 34 34 $mailto=""; 35 35 36 36 load_language('plugin.lang', MAIL_SUPERV_PATH); 37 37 38 //================================================================================== 38 39 if (!isset($infos_message)) … … 69 70 if (count($groups) > 0) 70 71 { 71 //=========================================================== 72 $args['Bcc']=$groups; 72 $args['Bcc']=$groups; 73 } else { 74 $mailto = $conf_mail['formated_email_webmaster']; 75 } 76 73 77 $args['from'] = $conf_mail['formated_email_webmaster']; 74 78 //================================================================== … … 88 92 $args['subject']="Plugin Piwigo TEST"; 89 93 $args['content']=$message_html; 94 $infos_message .="To :" . $mailto; 95 90 96 $ret= pwg_mail($mailto , $args); 91 92 $infos_message .= sprintf( l10n('An information email was sent to group "%s"'), $group_name ).'<br />'; 93 97 if ( $group_name <> '' or $mailto <> '' ) 98 { 99 if ($group_name<>'') { 100 $infos_message .= '<br />'. sprintf( l10n('An information email was sent to group "%s"'), $group_name ).'<br />'; 101 } 102 if ($mailto <> '') { 103 $infos_message .= '<br />'. sprintf( l10n('mail_sent_to'), $mailto ).'<br />'; 104 } 94 105 95 106 }else{ 96 $infos_message .= l10n('no_receiver_available') ;107 $infos_message .='<br />'.l10n('no_receiver_available') ; 97 108 } 98 109 … … 101 112 function mail_attachement($args) 102 113 { 103 global $infos_message,$erreur_message ,$conf,$user,$conf_mail,$mail_données ;114 global $infos_message,$erreur_message ,$conf,$user,$conf_mail,$mail_données,$lang ; 104 115 105 116 $mails_données = Get_Datas(); … … 109 120 } 110 121 111 122 load_language('plugin.lang', MAIL_SUPERV_PATH); 112 123 113 124 $nom ='piwigo_logo_sombre_214x100.png';
Note: See TracChangeset
for help on using the changeset viewer.