mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Default to address should be in global config
This commit is contained in:
@@ -67,7 +67,7 @@ print &ui_table_row($text{'sendmail_from'},
|
||||
$text{'sendmail_fromaddr'}));
|
||||
|
||||
# Default to address for notifications
|
||||
$to = $mconfig{'webmin_to'};
|
||||
$to = $gconfig{'webmin_email_to'};
|
||||
print &ui_table_row($text{'sendmail_toaddr'},
|
||||
&ui_opt_textbox("to", $to, 40, $text{'sendmail_to_def'}));
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ if ($in{'to_def'}) {
|
||||
}
|
||||
else {
|
||||
$in{'to'} =~ /^\S+$/ || &error($text{'sendmail_etoaddr'});
|
||||
$mconfig{'webmin_to'} = $in{'to'};
|
||||
$gconfig{'webmin_email_to'} = $in{'to'};
|
||||
}
|
||||
|
||||
# Save URL for use in email
|
||||
|
||||
Reference in New Issue
Block a user