}
else
{
echo "用户:$this->username 的信箱连接失败。<br>";
return 0;
}
}
function close()
{
if(imap_close($this->instream))
{
//echo "<hr>已经与服务器 $this->hostname 断开连接。";
return 1;
}
else
{
//echo "<hr>与服务器 $this->hostname 断开连接失败。";
return 0;
}
}
function deletemail($msg_no){
if (@imap_delete($this->instream,$msg_no))
return true;
else
return false;
}
function expungemail(){
if (@imap_expunge($this->instream))
return true;
else
return false;
}
function checkmailbox($page_size,$page)
{
$mboxinfo=@imap_mailboxmsginfo($this->instream);
//$mboxinfo=imap_check($this->instream);
if ($mboxinfo)
if ($mboxinfo->nmsgs>0)
{
| 对此文章发表了评论 |
