HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/hMailServer/PHPWebAdmin/background_ajax_spamassassintest.php
<?php
   if (!defined('IN_WEBADMIN'))
      exit();
      
   if (hmailGetAdminLevel() != ADMIN_SERVER)
   	hmailHackingAttemp(); // The user is not server administrator.
   
   $Hostname = hmailGetVar("Hostname", "localhost");
   $Port = hmailGetVar("Port", 783);
   
   $message = "";
   $AntiSpam = $obBaseApp->Settings->AntiSpam;
   $result = $AntiSpam->TestSpamAssassinConnection($Hostname, $Port, $message);
   
   echo $result;
?>