Exemplo n.º 1
0
    echo "</b>";
    flush();
    sleep(1);
    echo "<br>Checking SMTP Enabled";
    flush();
    titik2();
    echo "<b>";
    $mail = new EmailChecker();
    $mail->IsSMTP();
    $mail->SMTPAuth = true;
    $mail->SMTPSecure = "ssl";
    $mail->Host = $server[gmail]['host'];
    $mail->Port = $server[gmail]['port'];
    $mail->Username = "******";
    $mail->Password = "******";
    if ($mail->SmtpConnect()) {
        echo "<font color='green'>OK</font>";
    } else {
        echo "<font color='red'>ERROR</font>";
        $error = 1;
    }
    echo "</b>";
    flush();
    sleep(1);
    $file = fopen("emailcheckercompati.ble", "w");
    $compatibility = !$error ? 1 : 0;
    fwrite($file, $compatibility);
    fclose($file);
}
$compatibilityfile = fopen("emailcheckercompati.ble", "r");
$compatibility = trim(fgets($compatibilityfile, 255));