<?php
set_time_limit(0);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!--<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">-->
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1251">
<title>Sample</title>
</head>
<body>
<?php
include_once 'class.verifyEmail.php';
$email = 'upplysingar@reykjavik.is';
$vmail = new verifyEmail();
$vmail->setStreamTimeoutWait(20);
$vmail->Debug= TRUE;
$vmail->Debugoutput= 'html';
$vmail->setEmailFrom('viska@viska.is');
if ($vmail->check($email)) {
echo 'email <' . $email . '> exist!';
} elseif (verifyEmail::validate($email)) {
echo 'email <' . $email . '> valid, but not exist!';
} else {
echo 'email <' . $email . '> not valid and not exist!';
}
?>
</body>
</html>
|