Skip to main content
Email Testing

Catch every email your app sends

During development you need to see what emails your app sends, but you don't want them reaching real inboxes. Buggregator runs a local SMTP server that captures everything and shows it in a clean UI.

Get started Replaces Mailhog, Mailtrap, MailCatcher
127.0.0.1:8000
Screenshot: Buggregator email preview with HTML rendering, attachments, and raw source

HTML preview with attachments, headers, and raw MIME source

Everything you need to debug emails

Preview, inspect, and verify every email without leaving your dev environment.

๐Ÿ“จ

HTML preview

See exactly how your email looks. Rendered HTML with images, styles, and layouts.

๐Ÿ“Ž

Attachments

Download and inspect every attachment. PDFs, images, CSVs โ€” all accessible.

๐Ÿ“„

Raw source

View the raw MIME source, headers, and encoding. Debug email structure at the protocol level.

โšก

Real-time

Emails appear instantly via WebSocket. No page refresh needed.

๐Ÿ›ก๏ธ

Safe by default

Nothing is forwarded by itself. An email leaves your machine only if you set up a relay and press Send to inbox.

๐Ÿ“ฌ

Send to a real inbox

Check how Gmail or Outlook shows an email, or whether its link works on your phone. Send to inbox sends that one message through your SMTP server, only to the addresses you type.

๐Ÿ“…

Every version of an email

The Apple Watch version, the AMP version, a calendar invite, a bounce report: each in its own tab, next to the HTML preview.

๐Ÿ”„

No auth required

No username, password, or TLS setup. Just point your SMTP host and port.

How does it look in Gmail? Send that one email

Buggregator catches every email. When you want to see one in a real mail client, press Send to inbox and type your address. Only that message goes out, through the SMTP server you set up. The emailโ€™s original recipients never get it.

127.0.0.1:8000
Buggregator Send to inbox dialog on a caught email: the addresses to send to and the option to put them in To

Type the addresses to send to. By default the message goes exactly as it was caught; or put your addresses in To.

Set up the relay

Apple Watch, AMP, calendar invite: see every version of an email

An email can carry more than HTML and plain text. An order email can have a short version for the Apple Watch; an invite carries the event itself. Buggregator shows each version in its own tab, after the main preview. Nothing to set up: send the email as usual.

  • Apple Watch. The watch version at phone width, with its source.
  • AMP. A static view of the AMP version (its scripts do not run), with its source.
  • Calendar invite. A card above the email: what, when, where, the organizer and who accepted, declined or has not answered. The time is in your time zone, or in the sender's with its name when the zone is unknown; a cancelled invite is struck out.
  • Bounces and receipts. Delivery status, Read receipt and Original headers tabs.
  • In the list. Emails are marked Watch, AMP, Invite or Cancelled, and an invite shows its title and time in one line.
127.0.0.1:8000
Buggregator showing a calendar invite email: the invite card with time, place, organizer and each guest's answer, above the HTML preview

An invite to ยซRelease syncยป: the time in the viewer's zone, the organizer, and who accepted, declined or has not answered.

Setup in 60 seconds

No registration. No account. Start it and point your app at it.

1

Start Buggregator

Run a single command. The SMTP server starts on port 1025 alongside the web UI on port 8000. One file, about 40 MB, installed with one command. Prefer containers? Use the Docker tab.

$ curl -fsSL https://raw.githubusercontent.com/buggregator/server/master/scripts/install.sh | sh
$ HTTP_ADDR=127.0.0.1:8000 \
  SMTP_ADDR=127.0.0.1:1025 \
  VAR_DUMPER_ADDR=127.0.0.1:9912 \
  MONOLOG_ADDR=127.0.0.1:9913 \
  PROXY_ADDR=127.0.0.1:8080 \
  ~/.local/bin/buggregator

The script picks the file for your CPU: Intel/AMD or ARM.

One file for Linux, macOS and Windows, about 40 MB. Nothing else to install.

This run line keeps it on this computer. Without the *_ADDR settings it listens on all network interfaces

Rather not run a script? Download the file yourself

Runs on Windows, macOS and Linux, on Intel/AMD and ARM.

Prefer not to do it yourself? Your AI agent can set Buggregator up for you

2

Point your app to Buggregator

Change your SMTP settings to localhost:1025. No authentication needed. No TLS configuration.

# .env
MAIL_MAILER=smtp
MAIL_HOST=127.0.0.1
MAIL_PORT=1025
3

Send an email โ€” see it instantly

Trigger any email from your app. It shows up in the Buggregator UI immediately with full HTML preview, attachments, and raw source.

4

Optional: send one email to a real inbox

Want to see a caught email in Gmail or Outlook, or tap its link on your phone? Add an outgoing SMTP server (v2.13.0 or later). Then Send to inbox on an emailโ€™s page sends that one message to the addresses you type. Example for Gmail, which needs an app password:

smtp_relay:
  host: smtp.gmail.com
  port: 587
  tls: starttls
  username: me@gmail.com
  password_file: /run/secrets/smtp_password
  allowed_recipients: ["me@gmail.com", "*@mycompany.com"]

Who can send: without login (SSO off), only from this machine, with the UI opened as localhost or 127.0.0.1, and only to addresses in allowed_recipients. Each pattern must name a real domain: * or *@* turns the button off. With SSO on, any signed-in user can send, and allowed_recipients is optional. The emailโ€™s original recipients never get it. Up to 20 addresses per email, 10 emails a minute for the whole server.

Works with any language

Buggregator speaks standard SMTP. If your language can send emails, it works.

PHPโ€” Laravel, Symfony, WordPress, Magento, Spiral
Node.jsโ€” Nodemailer, any SMTP library
Pythonโ€” smtplib, Django, Flask-Mail
Rubyโ€” Action Mailer, Rails
Goโ€” net/smtp, any SMTP client
Javaโ€” JavaMail, Spring Boot
.NETโ€” SmtpClient, MailKit
Any languageโ€” if it speaks SMTP, it works

Tips for email testing

All tips

Ready to try it?

One command to start. No account needed.