fruitcake/inbound-mail

PHP Inbound Mail parser

dev-master / 0.1.x-dev 2020-02-18 18:35 UTC

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();