Skip to content

Processing Inbound Email

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

The Postmark API provides powerful features to process inbound messages. You can use PostmarkClient to retrieve these messages.

Get Inbound Messages:

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

var matchedInboundMessages = await client
	.GetInboundMessagesAsync(0, 100, "customer@example.com", 
	"support@example.com", 
	"Reply to this to this message verify your email address.");

Get A Single Inbound Message:

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

var inboundMessageId = "a message id";
var inboundMessage = await client
	.GetInboundMessageDetailsAsync(inboundMessageId);

Bypass Inbound Rule for Message:

See Inbound Rules for more information.

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

var inboundMessageId = "a message id";
var bypassResult = await client
	.BypassBlockedInboundMessage(inboundMessageId);
Clone this wiki locally