bespoke-support / postmark-inbound
Postmark Inbound API
1
2018-08-13 12:52 UTC
Requires
- php: 5.*|7.*
Requires (Dev)
- jjaffeux/postmark-inbound-php: @stable
- symfony/phpunit-bridge: @stable
This package is auto-updated.
Last update: 2024-08-29 05:06:09 UTC
README
解析来自Postmark的入站邮件
https://postmarkapp.com/developer/webhooks/inbound-webhook
设置
"require": {
"bespoke-support/postmark-inbound": "1.0"
}
用法
$inbound = new \BespokeSupport\PostmarkInbound\PostmarkInbound(file_get_contents('php://input'));
通过方法或属性访问解析后的消息
通过方法或属性
$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;
}
感谢 + 灵感
许可
MIT 许可证