Added admin_name and admin_email to mail system config tab.
Using these variables in welcome email from admin, when mailbox is created.
| | |
| | | '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 |
| | | ################################## |
| | |
| | | ); |
| | | |
| | | |
| | | ?> |
| | | ?> |
| | |
| | | $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'; |
| | | ?> |
| | |
| | | $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';
|
| | | ?>
|
| | |
| | | <label for="webmail_url">{tmpl_var name='webmail_url_txt'}</label> |
| | | <input name="webmail_url" id="webmail_url" value="{tmpl_var name='webmail_url'}" size="30" maxlength="255" type="text" class="textInput" /> |
| | | </div> |
| | | <div class="ctrlHolder"> |
| | | <label for="admin_mail">{tmpl_var name='admin_mail_txt'}</label> |
| | | <input name="admin_mail" id="admin_mail" value="{tmpl_var name='admin_mail'}" size="30" maxlength="255" type="text" class="textInput" /> |
| | | </div> |
| | | <div class="ctrlHolder"> |
| | | <label for="admin_name">{tmpl_var name='admin_name_txt'}</label> |
| | | <input name="admin_name" id="admin_name" value="{tmpl_var name='admin_name'}" size="30" maxlength="255" type="text" class="textInput" /> |
| | | </div> |
| | | </fieldset> |
| | | |
| | | <input type="hidden" name="id" value="{tmpl_var name='id'}"> |
| | |
| | | |
| | | $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"; |