mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
Email test: added a check for linux (sendmail_path)
SVN:trunk[271]
This commit is contained in:
@@ -26,7 +26,7 @@ function CheckEmailSetting($oP)
|
||||
$sPhpIniFile = 'php.ini';
|
||||
}
|
||||
|
||||
$bIsWindows = (array_key_exists('WINDIR', $_SERVER));
|
||||
$bIsWindows = (array_key_exists('WINDIR', $_SERVER));
|
||||
if ($bIsWindows)
|
||||
{
|
||||
$sSmtpServer = ini_get('SMTP');
|
||||
@@ -62,6 +62,16 @@ function CheckEmailSetting($oP)
|
||||
else
|
||||
{
|
||||
// Not a windows system
|
||||
$sSendMail = ini_get('sendmail_path');
|
||||
if (empty($sSendMail))
|
||||
{
|
||||
$oP->error("The command to send mail is not defined. Please add the 'sendmail_path' directive into $sPhpIniFile. A recommended setting is <em>sendmail_path=sendmail -t -i</em>");
|
||||
$bRet = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$oP->info("The command to send mail: <strong>$sSendMail</strong>. To change this value, modify the 'sendmail_path' directive into $sPhpIniFile");
|
||||
}
|
||||
}
|
||||
if ($bRet)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user