jonnylor63 / bounce-mail-handler
邮件退回处理器
v6.1.0
2021-03-17 10:36 UTC
Requires
- php: >=7.0.0
- ext-imap: *
Requires (Dev)
- phpunit/phpunit: ~6.0 || ~7.0
README
- PHP 7.0+ 支持
- Composer & PSR-0 支持
- 通过 Travis CI 进行 PHPUnit 测试(待办:需要更多测试)
- 通过 SensioLabsInsight 进行 PHP-Quality 测试(待办:需要更多修复)
邮件退回处理器
警告:这是一个基于
- instaclick 的 PHPMailer-BMH 的扩展分支,而 PHPMailer-BMH 是基于 WorxWare 的 PHPMailer-BMH 分支。
- voku 的 PHPMailer-BMH
- mfrascati 的 PHPMailer-BMH
安装
推荐通过 Composer 进行安装。
$ composer require jonnylor63/bounce-mail-handler
示例
https://github.com/jonnylor63/PHPMailer-BMH/tree/main/examples
如果 bounce_type 是 "hard",则过程使用 $bmh->moveHard 和 $bmh->hardMailbox;如果 bounce_type 是 "soft",则过程使用 $bmh->moveSoft 和 $bmh->softMailbox;如果 bounce_type 与 "hard" 和 "soft" 不同,则过程使用 $bmh->moveOther 和 $bmh->otherMailbox。
电子邮件过程尝试理解
- 标准 DSN 消息
- 非标准 DSN 消息
- 没有获取到 content-type 标头
如果过程失败,只有当 disableDelete 为 false 且 purgeUnprocessed 为 true 时,电子邮件才会被删除。