2017 © Pedro Peláez
 

library postmark-inbound

Postmark Inbound API

image

bespoke-support/postmark-inbound

Postmark Inbound API

  • Tuesday, July 3, 2018
  • by Richard Seymour
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 1 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PostmarkInbound

Parse Inbound mail from Postmark, (*1)

https://postmarkapp.com/developer/webhooks/inbound-webhook, (*2)

Setup

    "require": {
        "bespoke-support/postmark-inbound": "1.0"
    }

Usage

$inbound = new \BespokeSupport\PostmarkInbound\PostmarkInbound(file_get_contents('php://input'));

Access of parsed message

via method or property, (*3)


$inbound->Subject; $inbound->Subject(); $inbound->FromEmail(); $inbound->FromFull(); $inbound->FromName(); $inbound->Date(); $inbound->OriginalRecipient(); $inbound->ReplyTo(); $inbound->MailboxHash(); $inbound->Tag(); $inbound->MessageID(); $inbound->TextBody(); $inbound->HtmlBody(); $inbound->StrippedTextReply(); $inbound->HasAttachments(); foreach ($inbound->Attachments() as $attachment) { $attachment->Name; $attachment->ContentType; $attachment->ContentLength; $attachment->Download('/'); } foreach ($inbound->Recipients() as $recipient) { $recipient->Name; $recipient->Email; } foreach ($inbound->UndisclosedRecipients() as $undisclosedRecipient) { $undisclosedRecipient->Name; $undisclosedRecipient->Email; }

Thanks + Inspiration

jjaffeux/postmark-inbound-php, (*4)

Licence

MIT Licence, (*5)

The Versions

03/07 2018

dev-master

9999999-dev

Postmark Inbound API

  Sources   Download

MIT

The Requires

  • php 5.*|7.*

 

The Development Requires

by Avatar Richard Seymour