How to Set Up Mailjet Email Delivery in WordPress
Mailjet is an email delivery and marketing service from Sinch. It uses a key pair instead of a single API key. LetterPress sends through the Mailjet v3.1 Send API.
Before you begin
- A Mailjet account.
- A verified sender address or domain.
- The API key and secret key from Mailjet.
Step 1: Verify your sender
- Sign in to Mailjet.
- Open Senders & Domains.
- Add your domain, or add a single sender address.
- Add the DNS records Mailjet shows.
- Wait for verification.
Domain verification is better for a live site. It enables DKIM and avoids sender rewriting.
Step 2: Get the API key pair
- Open Account Settings > API Key Management.
- Copy the API Key and Secret Key.
The API key is public and the secret key is private. Treat the secret key like a password.
Step 3: Enter the details in LetterPress
- Open Settings > Email providers.
- Select Mailjet.
- Paste the API key.
- Paste the secret key.
- Save changes. Set this provider as default if the button is shown. Then click Test connection.
Step 4: Set the sender and test
Open Settings > Sender identity and set From email to the verified sender or a domain address.
Click Send test email. Then send a test email from Settings > Sender identity.
Common problems
| Problem | What to check |
|---|---|
401 Unauthorized | The key pair is wrong, or the secret key was copied instead of the API key. |
400 sender not validated | The From address is not a verified sender. |
429 Too Many Requests | The plan limit or rate limit was reached. |
| Messages are accepted but not delivered | Check Mailjet's logs for a bounce or a blocked recipient. |
| Mail goes to the spam folder | Verify the domain and add SPF, DKIM, and DMARC. |
Next steps
- Connect Mailjet events with event tracking.
- Review email authentication.
- Moving from another SMTP plugin? Read SMTP migration.