How to Send WordPress Emails Using Postmark
Postmark separates transactional email and campaigns into message streams. In LetterPress, you can use one stream for site notifications and another for campaigns.
Before you begin
- A Postmark account with an approved server.
- A verified sender signature or domain.
- The Server API token.
Postmark reviews new accounts before allowing broad sending. If your account is pending approval, you can usually send only to your own address.
Step 1: Verify your domain
- Sign in to Postmark.
- Open your server and go to Sender Signatures or Domains.
- Add your domain and copy the DKIM and Return-Path records.
- Add the records at your DNS provider.
- Wait for Postmark to verify them.
Use a domain rather than a single sender for a live site.
Step 2: Get the server token
- Open your server.
- Go to Settings.
- Copy the Server API token.
Each Postmark server has its own token. Make sure you copy the token from the server you want to send through.
Step 3: Enter the details in LetterPress
- Open Settings > Email providers.
- Select Postmark.
- Paste the server token.
- Leave Broadcast stream empty for now.
- Save changes. Set this provider as default if the button is shown. Then click Test connection.
Step 4: Choose the campaign stream
Postmark treats transactional email and broadcast email differently.
- WordPress notifications and transactional email use the server's default transactional stream.
- Campaigns use the broadcast stream when you enter one.
To use a broadcast stream, create it in Postmark, then enter its stream ID in Broadcast stream. The common example is broadcasts, but use the exact ID from your server.
Leave the field empty if you want campaigns to use the transactional stream too. That is fine for small lists and wrong for large ones.
Step 5: Set the sender and test
Open Settings > Sender identity and set From email to an address on the verified domain.
Click Send test email. Then send a test email from Settings > Sender identity.
Common problems
| Problem | What to check |
|---|---|
401 Unauthorized | The server token is wrong or belongs to another server. |
422 Sender signature not confirmed | The From address is not verified in Postmark. |
| Campaigns fail but WordPress email works | The broadcast stream ID is wrong or the stream is not active. |
| Account can only send to you | Postmark has not approved the account for broader sending yet. |
| Mail goes to spam | Verify the Return-Path and DKIM records, then review email authentication. |
Next steps
- Connect Postmark webhooks with event tracking.
- Review email authentication.
- Move an existing Postmark setup with SMTP migration.