Skip to content
This repository has been archived by the owner on Feb 25, 2025. It is now read-only.

Latest commit

 

History

History
31 lines (20 loc) · 596 Bytes

readme.md

File metadata and controls

31 lines (20 loc) · 596 Bytes

PHP Inbound Mail

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