-
Notifications
You must be signed in to change notification settings - Fork 63
Analyzing Sent Messages
Andrew Theken edited this page Jan 16, 2015
·
2 revisions
You can retrieve Open Events for emails that you send through Postmark with the PostmarkClient class.
$client = new PostmarkClient("<server token>");
// You may filter on sent messages based on many optional parameters
// In this example, we're getting the first 100 open events for messages
// Sent to "customer@example.com"
$filteredOpenEvents = $client->
getOpenStatistics(100, 0, "customer@example.com");$client = new PostmarkClient("<server token>");
$messageId = "sent message id";
$messageDetail = $client->
getOpenStatisticsForMessage($messageId);The Postmark-PHP client can be installed from Packagist.
For additional information about the capabilities of the Postmark API, see Postmark Developers Documentation.