paulbunyannet/mail
Composer 安装命令:
composer require paulbunyannet/mail
包简介
Get message from mail box
README 文档
README
paulbunyannet/mail Shortcut for checking a mail box
Installation
This project can be installed via [Composer]:
$ composer require paulbunyannet/mail:"^1.0"
Get Mail
$mailbox = new Pbc\Mail\GetMail([ 'username' => emailUsername, 'password' => emailPassword, 'email' => someone@email.com, 'mailServer' => mail.email.com, ]); // get total messages in box $totalMail = $mailbox->getTotalMails(); for ($i = 1; $i <= $totalMail; $i++) { $headers = $mailbox->getHeaders($i); echo "<h1>" . $headers['subject'] . '</h1>'; echo "<p>From: " . $headers['from'] . '</p>'; echo $mailbox->getFullBody($i); }
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-09-24