fruitcake / inbound-mail
PHP Inbound Mail parser
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-11-19 05:13:42 UTC
README
Parsers and utilities to process inbound mail
Providers
- IMAP / RAW emails
- Gmail (Google API)
- Postmark Inbound json
- Sendgrid Inbound Parse json
Postmark/Sendgrid/Gmail also support RAW MIME parts that can be used
Install
composer require fruitcake/inbound-mail:^0.1@dev
Usage
$inboundMail = \Fruitcake\InboundMail\InboundMail::parse($message); $html = $inboundEmail->getHtml(); $text = $inboundEmail->getText(); $visibleText = $inboundEmail->getVisibleText(); $reply = $inboundEmail->createReply();