Skip to content

Commit 0dd4a3e

Browse files
committed
Kill php mail from settings
Signed-off-by: Roeland Jago Douma <[email protected]>
1 parent 65bcef8 commit 0dd4a3e

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

config/config.sample.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -328,24 +328,19 @@
328328
'mail_smtpdebug' => false,
329329

330330
/**
331-
* Which mode to use for sending mail: ``sendmail``, ``smtp``, ``qmail`` or
332-
* ``php``.
331+
* Which mode to use for sending mail: ``sendmail``, ``smtp`` or ``qmail``.
333332
*
334333
* If you are using local or remote SMTP, set this to ``smtp``.
335334
*
336-
* If you are using PHP mail you must have an installed and working email system
337-
* on the server. The program used to send email is defined in the ``php.ini``
338-
* file.
339-
*
340335
* For the ``sendmail`` option you need an installed and working email system on
341336
* the server, with ``/usr/sbin/sendmail`` installed on your Unix system.
342337
*
343338
* For ``qmail`` the binary is /var/qmail/bin/sendmail, and it must be installed
344339
* on your Unix system.
345340
*
346-
* Defaults to ``php``
341+
* Defaults to ``smtp``
347342
*/
348-
'mail_smtpmode' => 'php',
343+
'mail_smtpmode' => 'smtp',
349344

350345
/**
351346
* This depends on ``mail_smtpmode``. Specify the IP address of your mail

lib/private/Settings/Admin/Mail.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ public function getForm() {
6363
$parameters['mail_smtppassword'] = '********';
6464
}
6565

66+
if ($parameters['mail_smtpmode'] === '' || $parameters['mail_smtpmode'] === 'php') {
67+
$parameters['mail_smtpmode'] = 'smtp';
68+
}
69+
6670
return new TemplateResponse('settings', 'settings/admin/additional-mail', $parameters, '');
6771
}
6872

settings/templates/settings/admin/additional-mail.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
];
3939

4040
$mail_smtpmode = [
41-
['php', 'PHP'],
4241
['smtp', 'SMTP'],
4342
];
4443
if ($_['sendmail_is_available']) {

0 commit comments

Comments
 (0)