-
Notifications
You must be signed in to change notification settings - Fork 46
Managing Your Sender Signatures
Postmark requires you to configure "Sender Signatures." Sender Signatures are email addreses that you have verified through a number of different methods. At a bare minimum, when a new Sender Signature is added to your account, an verification email is sent to that address, with a link requesting the recipient to authorize Postmark to send mail on their behalf. This process is very similar to the normal verification emails you get when you create accounts on websites like facebook and twitter. This verification step is helpful in ensuring a high delivery rates, and to prevent unauthorized parties from impersonating email addresses that they do not "own."
Postmark provides additional protections through industry standard "DKIM" and "SPF" protocols. Using these two systems will improve your email delivery rates when you configure them, however neither is required to manage your sender signatures.
The PostmarkAdminClient
allows you to Create, Read, Update, and Delete Sender Signatures.
var adminClient = new PostmarkAdminClient("<account token>");
var signature = await adminClient
.CreateSignatureAsync("[email protected]", "John Appleseed");
NOTE: You will need to follow the link in the verification email sent to [email protected]
in order to start using this sender signature.
var adminClient = new PostmarkAdminClient("<account token>");
var signatureId = 42;
var updatedSignature = await adminClient
.UpdateSignatureAsync(signatureId, "Johnny Appleseed");
var adminClient = new PostmarkAdminClient("<account token>");
var signatureId = 42;
var signature = await adminClient
.GetSignatureAsync(signatureId);
var adminClient = new PostmarkAdminClient("<account token>");
var signatures = await adminClient
.GetSenderSignaturesAsync();
foreach(var signature in signatures.SenderSignatures){
Console.WriteLine(signature.EmailAddress);
}
var adminClient = new PostmarkAdminClient("<account token>");
var signatureId = 42;
var result = await adminClient
.DeleteSignatureAsync(signatureId);
if(result.Status == PostmarkStatus.Success){ /* Continue... */}
The Postmark.Net client can be installed from NuGet.
For additional information about the capabilities of the Postmark API, see http://developer.postmarkapp.com/.
- Getting Started
- Version 2.0 Upgrade Guide
- Sending Email
- Searching Sent Messages
- Analyzing Sent Messages
- Processing Inbound Email
- Retrieving Message Statistics
- Handling Bounces
- Managing Suppressions
- Working with Message Streams
- Managing Your Account
- Troubleshooting Async&Await
- Version 1.x Overview
- Sending Email
- Sending Batch Emails
- Sending Attachments
- Sending Inline Images
- Using
MailMessage
- Using the Bounce API
- [Getting Send Statistics](Sending Statistics)
- Adding Custom Email Headers