fruitcake / inbound-mail
PHP 入站邮件解析器
dev-master / 0.1.x-dev
2020-02-18 18:35 UTC
Requires
- php: ^7.1
- swiftmailer/swiftmailer: ^6.1
- willdurand/email-reply-parser: ^2.8
- zbateson/mail-mime-parser: ^1.1
Requires (Dev)
- google/apiclient: ^2.2
- phpunit/phpunit: ^7
- squizlabs/php_codesniffer: ^3.4
This package is auto-updated.
Last update: 2024-09-19 04:48:10 UTC
README
处理入站邮件的解析器和实用工具
提供商
- IMAP / 原始电子邮件
- Gmail (Google API)
- Postmark Inbound json
- Sendgrid Inbound Parse json
Postmark/Sendgrid/Gmail 也支持可使用的原始 MIME 部分
安装
composer require fruitcake/inbound-mail:^0.1@dev
用法
$inboundMail = \Fruitcake\InboundMail\InboundMail::parse($message); $html = $inboundEmail->getHtml(); $text = $inboundEmail->getText(); $visibleText = $inboundEmail->getVisibleText(); $reply = $inboundEmail->createReply();