From d4678100766f23dba2982f6e7565e2aa418193ff Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 15 Mar 2026 12:26:43 -0700 Subject: [PATCH] Fix layout of from address field https://github.com/webmin/webmin/issues/2644 --- webmin/edit_sendmail.cgi | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/webmin/edit_sendmail.cgi b/webmin/edit_sendmail.cgi index c06d77099..c98ffc79c 100755 --- a/webmin/edit_sendmail.cgi +++ b/webmin/edit_sendmail.cgi @@ -62,11 +62,12 @@ print &ui_table_row($text{'sendmail_auth'}, $from = $mconfig{'webmin_from'}; $fromdef = "webmin-noreply\@".&mailboxes::get_from_domain(); print &ui_table_row($text{'sendmail_from'}, - &ui_opt_textbox("from", $from, 40, - &text('sendmail_fromdef', $fromdef)."
", - $text{'sendmail_fromaddr'})." ". - $text{'sendmail_name'}." ". - &ui_textbox("from_name", $mconfig{'webmin_from_name'}, 30), 3); + &ui_radio_table("from_def", $from ? 0 : 1, + [ [ 1, "", &text('sendmail_fromdef', $fromdef) ], + [ 0, "", $text{'sendmail_fromaddr'}." ". + &ui_textbox("from", $from, 40)."
\n". + $text{'sendmail_name'}." ". + &ui_textbox("from_name", $mconfig{'webmin_from_name'}, 30) ] ]), 3); # Default to address for notifications $to = $gconfig{'webmin_email_to'};