Skip to content

Handling Bounces

Andrew Theken edited this page Jan 16, 2015 · 2 revisions

The PostmarkClient allows you to search and process bounces from email that you send through the Postmark API.

Get Delivery Stats:

$client = new PostmarkClient("<server token>");

$deliveryStats = $client->getDeliveryStatistics();

Get Bounces:

$client = new PostmarkClient("<server token>");

$bounces = $client->getBounces();

Get a Single Bounce:

$client = new PostmarkClient("<server token>");

$bounceId = 42;
$bounces = $client->getBounce($bounceId);

Get Bounce Dump:

$client = new PostmarkClient("<server token>");

$bounceId = 42;
$bounceDump = $client->getBounceDump($bounceId);

Activate a Bounce:

$client = new PostmarkClient("<server token>");

$bounceId = 42;
$bounceActivationStatus = $client->activateBounce($bounceId);

Get Bounce Tags:

$client = new PostmarkClient("<server token>");
$bounceTags = $client->getBounceTags();