-
Notifications
You must be signed in to change notification settings - Fork 64
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, a verification email is sent to that address, with a link requesting the recipient to authorize Postmark to send mail on their behalf.
The process of Sender Signature verification 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 high delivery rates, and helps to avoid 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.
$adminClient = new PostmarkAdminClient("<account token>");
$signature = $adminClient->
createSenderSignature("[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.
$adminClient = new PostmarkAdminClient("<account token>");
$signatureId = 42;
$updatedSignature = $adminClient->
editSenderSignature($signatureId, "John Appleseed");$adminClient = new PostmarkAdminClient("<account token>");
$signatureId = 42;
$signature = $adminClient->
getSenderSignature($signatureId);$adminClient = new PostmarkAdminClient("<account token>");
$signatures = $adminClient->listSenderSignatures();
foreach($signatures->senderSignatures as $key=>$signature){
echo $signature->emailAddress;
}$adminClient = new PostmarkAdminClient("<account token>");
$signatureId = 42;
$result = $adminClient->deleteSenderSignature($signatureId);The Postmark-PHP client can be installed from Packagist.
For additional information about the capabilities of the Postmark API, see Postmark Developers Documentation.