diff --git a/admin/post/settings_mail.php b/admin/post/settings_mail.php index fe50952e0..c9790c6bf 100644 --- a/admin/post/settings_mail.php +++ b/admin/post/settings_mail.php @@ -3,7 +3,7 @@ defined('FROM_POST_HANDLER') || die("Direct file access is not allowed"); // Saves and tests return to the tab they were submitted from (see settings_mail.php) -$mail_tabs = ['smtp', 'imap', 'oauth', 'from', 'tests']; +$mail_tabs = ['sending', 'receiving', 'oauth', 'from', 'tests']; $mail_tab_redirect = 'settings_mail.php'; if (isset($_POST['tab']) && in_array($_POST['tab'], $mail_tabs, true)) { $mail_tab_redirect .= '?tab=' . $_POST['tab']; diff --git a/admin/settings_mail.php b/admin/settings_mail.php index 152cafad3..7a4fc470b 100644 --- a/admin/settings_mail.php +++ b/admin/settings_mail.php @@ -14,10 +14,10 @@ $oauth_needed = in_array($config_smtp_provider, ['google_oauth', 'microsoft_oaut || in_array($config_imap_provider, ['google_oauth', 'microsoft_oauth'], true); // ---- Active tab ------------------------------------------------------------- -// The tab lives in the URL (?tab=imap) so it can be linked, bookmarked, survives a +// The tab lives in the URL (?tab=receiving) so it can be linked, bookmarked, survives a // reload, and lets the POST handlers send you back to the tab you saved from -$mail_tabs = ['smtp', 'imap', 'oauth', 'from', 'tests']; -$active_tab = isset($_GET['tab']) && in_array($_GET['tab'], $mail_tabs, true) ? $_GET['tab'] : 'smtp'; +$mail_tabs = ['sending', 'receiving', 'oauth', 'from', 'tests']; +$active_tab = isset($_GET['tab']) && in_array($_GET['tab'], $mail_tabs, true) ? $_GET['tab'] : 'sending'; // A direct link to the OAuth tab reveals it even when no OAuth provider is selected yet if ($active_tab === 'oauth') { @@ -74,12 +74,12 @@ $imap_ready = $imap_standard_ready || $imap_oauth_ready;