diff --git a/module/mail/ui/detect.html.php b/module/mail/ui/detect.html.php
index db2a32675b..55201f89ca 100644
--- a/module/mail/ui/detect.html.php
+++ b/module/mail/ui/detect.html.php
@@ -12,6 +12,7 @@ namespace zin;
formPanel(
set::labelWidth('11em'),
+ set::size('sm'),
formGroup(
set::width('1/2'),
set::label($lang->mail->inputFromEmail),
diff --git a/module/mail/ui/edit.html.php b/module/mail/ui/edit.html.php
index 7713f70720..9a053181fc 100644
--- a/module/mail/ui/edit.html.php
+++ b/module/mail/ui/edit.html.php
@@ -150,7 +150,6 @@ formPanel
set::items($config->charsets[$this->cookie->lang]),
),
set::actions($formActions),
- set::actionsClass('w-1/2'),
);
div
diff --git a/module/mail/ui/index.html.php b/module/mail/ui/index.html.php
new file mode 100644
index 0000000000..497275839f
--- /dev/null
+++ b/module/mail/ui/index.html.php
@@ -0,0 +1,24 @@
+
+ * @package mail
+ * @link https://www.zentao.net
+ */
+namespace zin;
+
+formPanel
+(
+ set::title($lang->mail->selectMTA),
+ set::size('sm'),
+ set::bodyClass('text-center'),
+ set::actions(array
+ (
+ common::hasPriv('mail', 'detect') ? array('url' => inLink('detect'), 'text' => $lang->mail->smtp) : null
+ )),
+);
+
+render();