27 lines
549 B
PHP
27 lines
549 B
PHP
<?php header('Content-type: application/json');
|
|
$em="";
|
|
if ( !defined('PATHTOINCLUDES') ) define('PATHTOINCLUDES', $_SERVER["DOCUMENT_ROOT"] . '/mailservices/includes/');
|
|
include(PATHTOINCLUDES."base.php");
|
|
$dconn=dbconnect2();
|
|
if(isset($_GET["emailaddress"])){
|
|
$emailaddress=$_GET["emailaddress"];
|
|
if(checkEmail($emailaddress))
|
|
{
|
|
$msg="good";
|
|
}
|
|
else
|
|
{
|
|
$msg="bad";
|
|
}
|
|
$arr = array ('result'=>$msg);
|
|
echo json_encode($arr);
|
|
exit();
|
|
}
|
|
else
|
|
{
|
|
$msg="email blank";
|
|
$arr = array ('result'=>$msg);
|
|
echo json_encode($arr);
|
|
exit();
|
|
}
|
|
?>
|