Default to address should be in global config

This commit is contained in:
Jamie Cameron
2024-10-13 19:01:27 -07:00
parent 720b01e690
commit d1cc0c4790
2 changed files with 2 additions and 2 deletions

View File

@@ -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'}));

View File

@@ -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