bespoke-support / postmark-inbound
Postmark Inbound API
Installs: 922
Dependents: 1
Suggesters: 1
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/bespoke-support/postmark-inbound
Requires
- php: 5.*|7.*
Requires (Dev)
- jjaffeux/postmark-inbound-php: @stable
- symfony/phpunit-bridge: @stable
This package is auto-updated.
Last update: 2025-10-29 01:51:30 UTC
README
Parse Inbound mail from Postmark
https://postmarkapp.com/developer/webhooks/inbound-webhook
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
$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
Licence
MIT Licence