How to Set Up Mailtrap Email Sending in WordPress
Mailtrap is known for email testing, but it also offers a sending product for live email. LetterPress needs the sending product. A token from the testing inbox will not deliver mail to real recipients.
Before you begin
- A Mailtrap account with Email Sending enabled.
- A verified sending domain.
- A sending API token, not a testing inbox token.
Setup
- Sign in to Mailtrap.
- Open Email Sending and add your sending domain.
- Copy the DNS records and add them at your DNS provider.
- Wait for verification.
- Open the API tokens area for Email Sending and create a token.
- Copy the token.
- In WordPress, open Settings > Email providers and select Mailtrap.
- Paste the token and save. Set this provider as default if the button is shown. Then click Test connection.
The connection test only confirms the token is saved. Use Send test email to prove delivery.
Set the sender
Open Settings > Sender identity and set From email to an address on the verified domain.
Common problems
| Problem | What to check |
|---|---|
401 Unauthorized | The token is wrong, or it is a testing inbox token. |
403 Forbidden | The token cannot send, or the domain is not verified. |
| Mail only goes to the testing inbox | You are using a sandbox or testing token. Create a sending token. |
| Test passes but no mail arrives | The test did not send anything. Use Send test email. |
| Mail goes to spam | Add SPF, DKIM, and DMARC. |
Next steps
- Review email authentication.
- Fix delivery problems with Emails not sending.
- Moving from another plugin? Read SMTP migration.