栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > PHP > PHP函数库

PHP - 函数:imap_listmailbox()

PHP函数库 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

PHP - 函数:imap_listmailbox()

IMAP 电子邮件系统函数库
imap_listmailbox

获取邮箱列示。

语法: array imap_listmailbox(int stream_id, string ref, string pattern);

返回值: 数组

函数种类: 网络系统

内容说明

本函数可获得邮箱列示。参数 imap_stream 为 IMAP 的代号。参数 ref 通常为 IMAP 服务器名称,参考下例。参数 pattern 可用万用字符 * 代表全部的路径,aayawa@yahoo.com 并指出 (27-Apr-1999) 若本参数以 "" (空字符) 代入,不会返回资料。

使用范例

本例为 alank@shermanloan.com 于 02-Jun-1999 所提出的。

?php
$Account = "myid";
$Password= "mypasswd";
$mailbox = imap_open("{mail.xyz.com:143}INBOX", $Account, $Password);
if ($mailbox) {
 $mailboxes = imap_listmailbox($mailbox, "{mail.xyz.com:143}", "*");
 for ($index = 0; $index   count($mailboxes); $index++) {
 print($mailboxes[$index] . "n");
 }
 imap_close($mailbox);
} else {
 print("无法?/font>}启 $Account 的信箱.n");
}
?


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/1787.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号