summaryrefslogtreecommitdiffstats
path: root/settings/templates/admin.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/templates/admin.php')
-rw-r--r--settings/templates/admin.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/settings/templates/admin.php b/settings/templates/admin.php
index 487da036e74..9f5f9f54ba3 100644
--- a/settings/templates/admin.php
+++ b/settings/templates/admin.php
@@ -26,11 +26,15 @@ $mail_smtpsecure = array(
);
$mail_smtpmode = array(
- 'sendmail',
- 'smtp',
- 'qmail',
'php',
+ 'smtp',
);
+if ($_['sendmail_is_available']) {
+ $mail_smtpmode[] = 'sendmail';
+}
+if ($_['mail_smtpmode'] == 'qmail') {
+ $mail_smtpmode[] = 'qmail';
+}
?>