php-inbound-mail
php-inbound-mail copied to clipboard
PHP Inhound Mail parser for different clients (Sendgrid, Gmail, Postmark etc)
PHP Inbound Mail
Parsers and utilities to process inbound mail
Providers
- [x] IMAP / RAW emails
- [x] 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();