> hello, your english is a little unclear, thanks anyway.
Yes, that is. English is not my mother language.
> ... Call to undefined function: imap_open() ...
This mean that you don't have installed IMAP functions on you hosting.
Try this code that use socket to connect to POP3.
function checkEMail($host, $port, $user, $pass)
{
$fp = fsockopen($host, $port, $errno, $errstr);
if(!$fp)
{
// could not open socket connection
$r = false;
}
else
{
$res = fgets($fp, 200);
if(substr($res, 0, 3) == "+OK")
{
fputs($fp, "USER $user\n");
fgets($fp, 200);
fputs($fp, "PASS $pass\n");
$res = fgets($fp, 200);
if(substr($res, 0, 3) == "+OK")
{
fputs($fp, "STAT\n");
$res = fgets($fp, 200);
if(substr($res, 0, 3) == "+OK")
{
$res = explode(" ", $res);
$r = $res[1];
}
else
{
$r = false;
}
}
else
{
$r = false;
}
}
else
{
$r = false;
}
fputs($fp, "QUIT\n");
fclose($fp);
}
return $r;
}