首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > PHP > 一个易于使用的界面来访问IMAP和POP3服务器

一个易于使用的界面来访问IMAP和POP3服务器

资 源 简 介

Odimail-php is a wrapper for the PHP-IMAP functions that makes easy to access mail servers ``` $config = array( "user" => "your.user.name@gmail.com", "password" => "yourpassword", "host" => "imap.gmail.com", "mailbox" => "INBOX", "port" => 993, "flags" => array("ssl", "novalidate-cert") ); $connection = new Odimail_Connection(); $connection->open($config); for ($i = 1; $i <= $connection->countMessages(); $i++) { $message = $connection->getMessage($i); echo "Subject: " . $message->getSubject() . "
"; echo "From: " . $message->getFrom()->getEmail() . "
"; echo "To: " . $message->getTo(0)->getEmail() . "
"; echo "
"; } ```

文 件 列 表

odimail-php_v0.9_api
blank.html
classtrees_Odimail.html
elementindex.html
elementindex_Odimail.html
errors.html
index.html
li_Odimail.html
media
Odimail
packages.html
VIP VIP
0.178773s