Skip to content

Searching Sent Messages

Andrew Theken edited this page Jan 22, 2015 · 4 revisions

You can search for messages that you have previously sent using Postmark with the PostmarkClient class.

Get Sent Messages Matching Criteria:

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

var matchedSentMessages = await client
    .GetOutboundMessagesAsync(
        0, 100, "[email protected]", "[email protected]",
        "onboarding-message", "Welcome to the best service ever!");

Get Sent Message Detail:

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

var messageId = "sent message id";
var messageDetail = await client
	.GetOutboundMessageDetailsAsync(messageId);

Get Sent Message Dump:

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

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