diff --git a/interface/web/admin/form/system_config.tform.php b/interface/web/admin/form/system_config.tform.php index 2c0138eb2b8b7ecb54f7ec74441870d8810ed708..db43fc81870cf0cd60995efc6ff005a4d8fb724c 100644 --- a/interface/web/admin/form/system_config.tform.php +++ b/interface/web/admin/form/system_config.tform.php @@ -180,6 +180,22 @@ $form["tabs"]['mail'] = array ( 'width' => '30', 'maxlength' => '255' ), + 'admin_mail' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), + 'admin_name' => array ( + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'default' => '', + 'value' => '', + 'width' => '30', + 'maxlength' => '255' + ), ################################## # ENDE Datatable fields ################################## @@ -233,4 +249,4 @@ $form["tabs"]['misc'] = array ( ); -?> \ No newline at end of file +?> diff --git a/interface/web/admin/lib/lang/cz_system_config.lng b/interface/web/admin/lib/lang/cz_system_config.lng index 39eb7ff727b4f0ad6e2232dd53836c6af1e6cfbb..b8f55eeadb28c97ecb2ba8d5ee34d76af76ed8ef 100644 --- a/interface/web/admin/lib/lang/cz_system_config.lng +++ b/interface/web/admin/lib/lang/cz_system_config.lng @@ -19,4 +19,6 @@ $wb['use_domain_module_txt'] = 'Use the domain-module to add new domains'; $wb['use_domain_module_hint'] = 'If you use this module, your customers can only select one of the domains the admin creates for them. They can not free edit the domain-field.You have to re-login after changing this value, to make the changes visible.'; $wb['new_domain_txt'] = 'HTML to create a new domain'; $wb['webftp_url_txt'] = 'WebFTP URL'; +$wb['admin_mail_txt'] = 'E-mail Administrátora'; +$wb['admin_name_txt'] = 'Jméno Administrátora'; ?> diff --git a/interface/web/admin/lib/lang/en_system_config.lng b/interface/web/admin/lib/lang/en_system_config.lng index 5d891644e070a07ac604ce35e838759465e44c76..d75d1a7bdab48ced14753c600a35084e886f0610 100644 --- a/interface/web/admin/lib/lang/en_system_config.lng +++ b/interface/web/admin/lib/lang/en_system_config.lng @@ -19,4 +19,6 @@ $wb["use_domain_module_txt"] = 'Use the domain-module to add new domains'; $wb["use_domain_module_hint"] = 'If you use this module, your customers can only select one of the domains the admin creates for them. They cannot free edit the domain-field.You have to re-login after changing this value, to make the changes visible.'; $wb["new_domain_txt"] = 'HTML to create a new domain'; $wb["webftp_url_txt"] = 'WebFTP URL'; +$wb['admin_mail_txt'] = 'Administrator's e-mail'; +$wb['admin_name_txt'] = 'Administrator's name'; ?> diff --git a/interface/web/admin/templates/system_config_mail_edit.htm b/interface/web/admin/templates/system_config_mail_edit.htm index 776c513b15074895af9b2f58b8b7ac1af32bd54e..41ba4cd0520542f8f7f0b5b89e0934e8d60ce325 100644 --- a/interface/web/admin/templates/system_config_mail_edit.htm +++ b/interface/web/admin/templates/system_config_mail_edit.htm @@ -15,6 +15,14 @@ +
+ + +
+
+ + +
diff --git a/interface/web/mail/mail_user_edit.php b/interface/web/mail/mail_user_edit.php index 3bda44205f161f75f0ca632cf7596631abfadb7d..11daf7a3bb8bfc6aea5668ec0b59bc96c3aa4389 100644 --- a/interface/web/mail/mail_user_edit.php +++ b/interface/web/mail/mail_user_edit.php @@ -242,6 +242,12 @@ class page_action extends tform_actions { $welcomeFromName = $app->tform->lng("welcome_mail_fromname_txt"); $welcomeFromEmail = $app->tform->lng("welcome_mail_fromemail_txt"); + + $app->uses('getconf'); + $global_config = $app->getconf->get_global_config('mail'); + if(!empty($global_config['admin_mail']))$welcomeFromEmail = $global_config['admin_mail']; + if(!empty($global_config['admin_name']))$welcomeFromName = $global_config['admin_name']; + $mailHeaders = "MIME-Version: 1.0" . "\n"; $mailHeaders .= "Content-type: text/plain; charset=utf-8" . "\n"; $mailHeaders .= "Content-Transfer-Encoding: 8bit" . "\n";