From 37ad74613a8d045cd96701a46ae4d6152379e605 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 10 May 2009 02:44:14 +0000 Subject: [PATCH] If using the SMTPS method for mail, we can test the server availability --- htdocs/admin/mails.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/htdocs/admin/mails.php b/htdocs/admin/mails.php index d22bbf8159c..403a9547d1d 100644 --- a/htdocs/admin/mails.php +++ b/htdocs/admin/mails.php @@ -413,8 +413,10 @@ else // Boutons actions + print '
'; - if (! $linuxlike) + + if ($conf->global->MAIN_MAIL_SENDMODE != 'mail' || ! $linuxlike) { if (function_exists('fsockopen') && $port && $server) { @@ -425,12 +427,16 @@ else { print ''.$langs->trans("DoTestServerAvailability").''; } + print ''.$langs->trans("DoTestSend").''; + if ($conf->fckeditor->enabled) { print ''.$langs->trans("DoTestSendHTML").''; } + print ''.$langs->trans("Modify").''; + print '
';