From d2f4d363555d186c31402691e75bff070e54ceed Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 6 Oct 2011 09:13:48 +0000 Subject: [PATCH] more work regarding the implementation of the new feature that allows to specify smtp auth credentials for alarms/notifications only (otherwise credentials of corrent user are used) --- setup/inc/hook_config.inc.php | 4 ++++ setup/templates/default/config.tpl | 10 +++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/setup/inc/hook_config.inc.php b/setup/inc/hook_config.inc.php index 6c73b94f04..3563494ed4 100644 --- a/setup/inc/hook_config.inc.php +++ b/setup/inc/hook_config.inc.php @@ -235,6 +235,10 @@ function auth_type_activesync($config) { return _options_from(setup_cmd_config::auth_types(),$config['auth_type_activesync']); } +function auth_type_smtp($config) +{ + return _options_from(emailadmin_ui::getSMTPAuthConfig(),$config['smtpAuth']); +} /** * Returns options string diff --git a/setup/templates/default/config.tpl b/setup/templates/default/config.tpl index 4d6c1d7709..5d5d9ed7d4 100644 --- a/setup/templates/default/config.tpl +++ b/setup/templates/default/config.tpl @@ -184,7 +184,7 @@ - + {lang_Mail_server_login_type}: @@ -203,14 +203,18 @@ + {lang_SMTP-authentication_required}: + + + {lang_User_for_SMTP-authentication_(leave_it_empty_if_no_auth_required)}: - + {lang_Password_for_SMTP-authentication}: - +