A lightweight email testing tool for developers. Catch and view test emails in a clean interface without sending to real inboxes.
Simple, powerful, and built for developers
Separate emails by project. Keep test emails organized and easy to find.
Create test users and send emails to different recipients. Perfect for testing user flows.
View and manage all test emails in one place. Beautiful UI with dark mode support.
Three simple steps to start testing emails
Server starts on http://localhost:8000
Create an abstraction layer to easily switch between MailStub for development and real email services for production
Pro tip: This abstraction keeps your code clean and makes it easy to switch between testing and production environments. Your application code stays the same regardless of which email service you use.
Simple and intuitive API for sending test emails
projectIdThe ID of your project (format: p_xxxxx)senderFull sender email addressreceiverRecipient email (must be a user in your project)subjectEmail subject linebodyEmail body (supports HTML)MailStub is designed for testing environments only
Disclaimer: MailStub is designed exclusively for testing purposes. It does not send real emails or provide delivery guarantees, encryption, or compliance features. For production environments, use a proper transactional email service like SendGrid, Postmark, or AWS SES.