Exit Login
function Poplogout ()
{
if (! $this->getisconnect () && $this->bolislogin)
{
return false;
}
$this->sendcommand ("QUIT");
$this->getlineresponse ();
if (! $this->getrestissucceed ())
{
return false;
}
return true;
}
Get whether online
function Getisonline ()
{
if (! $this->getisconnect () && $this->bolislogin)
{
return false;
}
$this->sendcommand ("NOOP");
$this->getlineresponse ();
if (! $this->getrestissucceed ())
{
return false;
}
return true;
}
Get the number of messages and bytes (return array)
function Getmailsum ($intReturnType =2)
{
if (! $this->getisconnect () && $this->bolislogin)
{
return false;
}
$this->sendcommand ("STAT");
$strLineResponse = $this->getlineresponse ();
if (! $this->getrestissucceed ())
{
return false;
}
if ($intReturnType ==1)
{
return $this->strresponse;
}
Else
{
$arrResponse = Explode ("", $this->strresponse);
if (!is_array ($arrResponse) | | | | COUNT ($arrResponse) <=0)
{
$this->setmessage (' STAT command response message is error ', 2006);
return false;
}
return Array ($arrResponse [1], $arrResponse [2]);
}
}
Gets the session Id for the specified message
function Getmailsessid ($intMailId, $intReturnType =2)
{
if (! $this->getisconnect () && $this->bolislogin)
{
return false;
}