Skip to documentation

Mailtrap

On this page

Use Mailtrap Email Live Sending to send campaigns, automations, and transactional emails through your own Mailtrap account. Both the Bulk and Transactional streams are supported. Email Sandbox is not supported.

Connect Mailtrap#

  1. Create a Mailtrap account and verify your sending domain. In Mailtrap, open Settings → API Tokens and create or copy a token with permission to send from that domain.
  2. In Mailcoach, open your account menu, go to Settings → Mailers, and click Create mailer. Enter a name, choose Mailtrap as the email service, and click Create new mailer.
  3. Enter your API token. Choose Bulk for campaigns, or Transactional for automations and transactional emails. Create a separate mailer if you need both streams.
  4. Click Save credentials, then set a sending rate within your Mailtrap plan’s limits and click Save. The default is five emails per second; lower it if other applications share your Mailtrap account or API token.

Saving credentials does not verify them. Complete feedback setup, then use Send test email with a sender on your verified domain and a recipient address you control.

Configure feedback#

  1. In Mailtrap, go to Webhooks and click Create New Webhook.
  2. Copy the complete webhook URL from Mailcoach’s Feedback step and paste it into Mailtrap. It identifies your team and this specific mailer. Do not reuse another mailer’s URL or secret.
  3. Choose the JSON payload format, not JSON Lines.
  4. Select Email Live Sending, then the same stream and domain as this mailer.
  5. Select Bounce, Soft bounce, Spam complaint, and Unsubscribe. Also select Open and Click if you want open and click statistics.
  6. Save the webhook, copy its 32-character signing secret, and paste it into Mailcoach. Click Configure Mailtrap.
  7. Open the saved webhook in Mailtrap and click Run Test. Testing from Mailtrap’s creation form sends an unsigned request, which Mailcoach rejects.

Mailcoach verifies each webhook request with its signing secret before processing its events:

  • Bounce and Spam complaint events are recorded on the send and add the recipient’s address to your suppression list.
  • Soft bounce events are recorded on the send without suppressing the address.
  • Unsubscribe events unsubscribe the matching subscriber.
  • Delivery, Suspension, and Reject events are ignored and do not unsubscribe anyone.

Feedback is matched to the original send and mailer, including transactional To, CC, and BCC recipients. If you later switch to another default mailer, keep this mailer configured until feedback for recent sends has arrived.

Verify sending and tracking#

To track opens and clicks, open Domains → Tracking Settings for your sending domain in Mailtrap and enable them. Click tracking requires a paid Mailtrap plan. Mailtrap’s sending token cannot read these settings, so Mailcoach labels tracking as unverified.

Send a small test campaign to yourself. Confirm it arrives, open it, click a link, and check the statistics in Mailcoach. Email delivery and webhook feedback are separate checks. A saved configuration or delivered test email does not prove the webhook is working.

To use this mailer for an email list instead of your default mailer, open the list’s settings and select it under Mailers as the Campaign mailer, Automation mailer, or Transactional mailer. Use a Bulk mailer for campaigns and a Transactional mailer for automations and transactional emails.

For more details, see Mailtrap’s webhook documentation and sending-domain setup.