briqbriq

Mailpit

Catches outgoing email for tests, with a web inbox and a JSON API.

  • email
  • testing

Run it

briq_run({
  recipe: "mailpit",
  params: {
    "size": "nano"
  },
  wait: true
})

Parameters

NameTypeOptionsDefault
sizeenumnano, small"nano"

Outputs

Returned by briq_run once the stack is healthy. Hosts resolve inside your team network; secrets are generated per run.

SMTP_HOST
mailpit.<stack>.internal
SMTP_PORT
1025
SMTP_URL
smtp://mailpit.<stack>.internal:1025
MAILPIT_UI
http://mailpit.<stack>.internal:8025
MAILPIT_API
http://mailpit.<stack>.internal:8025/api/v1/messages

What it runs

BriqImagePortsSizeVolume
mailpitaxllent/mailpit:latest1025, 8025nano—

When to use it

  • Your tests must assert on the emails your app sends: recipients, subject, body, attachments.
  • You want to see what a flow sends without sending anything real.

Point the app at SMTP_HOST/SMTP_PORT (no auth, no TLS).

Tips

  • Assert through the API at MAILPIT_API: search with /api/v1/search?query=to:alice@example.com, read one message at /api/v1/message/<id>.
  • Clear between tests: DELETE on MAILPIT_API.
  • Inbox for a human: briq_run({ recipe: "mailpit", expose: "private" }).

On this page

Free to try

Let your agent try it, on us.

Every new account starts with €10 of credits. No card.

Connect your agent

How can we help?

Message to the briq team
hello@briq.cloud