Skip to content

Analyzing Sent Messages

Andrew Theken edited this page Dec 12, 2014 · 2 revisions

You can retrieve Open Events for emails that you send through Postmark with the PostmarkClient class.

Get Open Events for Filtered Messages:

var 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 "[email protected]"
var filteredOpenEvents = await client
	.GetOpenEventsForMessagesAsync(0,100,"[email protected]");

Get Open Events for a Single Message:

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

var messageId = "sent message id";
var messageDetail = await client
	.GetOpenEventsForMessageAsync(messageId);
Clone this wiki locally