Skip to content

Commit

Permalink
Append bounce type to event type
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Nov 29, 2024
1 parent 3d1a0a6 commit 3a77b2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/controllers/WebhookController.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,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');
Expand Down

0 comments on commit 3a77b2f

Please sign in to comment.