From 0604651f3a183b67d1e0c6dec979b7c7d0a5c4f7 Mon Sep 17 00:00:00 2001 From: bencroker Date: Thu, 14 Nov 2024 21:17:06 +0100 Subject: [PATCH] Append bounce type to event type --- src/controllers/WebhookController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controllers/WebhookController.php b/src/controllers/WebhookController.php index 77317ef8..168af3f1 100755 --- a/src/controllers/WebhookController.php +++ b/src/controllers/WebhookController.php @@ -288,6 +288,9 @@ public function actionPostmark(): ?Response if ($bounceType == 'HardBounce') { return $this->callWebhook('bounced', $email); } + + // Append the bounce type for debugging purposes. + $eventType .= '.' . $bounceType; } // https://postmarkapp.com/developer/webhooks/subscription-change-webhook elseif ($eventType == 'SubscriptionChange') { $suppress = $this->request->getBodyParam('SuppressSending');