Esempio n. 1
0
function CheckMember($payload)
{
    $emailChecker = new EmailChecker();
    if ($emailChecker->ValidateEmail($payload)) {
        echo 'true';
    } else {
        echo 'false';
    }
}
Esempio n. 2
0
 titik2();
 echo "<b>";
 if (function_exists('mail')) {
     echo "<font color='green'>OK</font>";
 } else {
     echo "<font color='red'>NOT FOUND</font>";
     $error = 1;
 }
 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();