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 14, 2024
1 parent 00a187e commit 0604651
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 @@ -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');
Expand Down

0 comments on commit 0604651

Please sign in to comment.