Skip to main content

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​

  1. Sign in to Mailtrap.
  2. Open Email Sending and add your sending domain.
  3. Copy the DNS records and add them at your DNS provider.
  4. Wait for verification.
  5. Open the API tokens area for Email Sending and create a token.
  6. Copy the token.
  7. In WordPress, open Settings > Email providers and select Mailtrap.
  8. 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​

ProblemWhat to check
401 UnauthorizedThe token is wrong, or it is a testing inbox token.
403 ForbiddenThe token cannot send, or the domain is not verified.
Mail only goes to the testing inboxYou are using a sandbox or testing token. Create a sending token.
Test passes but no mail arrivesThe test did not send anything. Use Send test email.
Mail goes to spamAdd SPF, DKIM, and DMARC.

Next steps​