Overview
Email Sandbox is a safe testing environment that captures all your test emails, preventing them from reaching real inboxes. Perfect for development, QA testing, and staging environments, it ensures your email functionality works flawlessly before going live.
What is Email Sandbox?
Email Sandbox acts as a fake SMTP server that traps all emails sent from your application. Instead of delivering to actual recipients, emails are captured in a secure inbox where you can:
Preview how emails look across different clients
Test email workflows without risk
Validate HTML rendering and responsiveness
Debug email issues before production
Share test results with your team
Key Features
Safe Testing Environment
Zero Risk: Emails never reach real recipients
Multiple Sandboxes: Separate environments for different projects
Email Address per Sandbox: Unique inbound email addresses for each sandbox
Team Collaboration: Share sandboxes with team members
Email Analysis Tools
HTML/Text Preview: See exactly how emails render
Spam Score Analysis: Predict spam filter behavior
Email Headers: Inspect all technical details
Attachment Support: Test file attachments
Advanced Testing
Bounce Emulation: Test bounce handling
API & SDKs: Full programmatic access with official SDKs
Collaboration Features
Shared Sandboxes: Team-wide access
Email Forwarding: Share specific test cases
Access Control: Manage permissions
Use Cases
Development Testing
Perfect for developers building email features:
Test email templates during development
Verify dynamic content and personalization
Debug email sending logic
Test different email scenarios
Validate email formatting
QA & Staging
Essential for quality assurance:
End-to-end workflow testing
Cross-client compatibility checks
Regression testing
Performance testing
User acceptance testing
Email Design
Ideal for designers and marketers:
Preview email designs
Test responsive layouts
Check image rendering
Validate link tracking
Review content formatting
How It Works
1. Simple Integration
Choose your integration method:
SMTP Configuration:
Unique Email Addresses: Each sandbox provides unique @mailtrap.io addresses for inbound testing.
2. Send & Receive Test Emails
Outbound: Your application sends emails normally - Sandbox captures them
Inbound: Send emails to your sandbox's unique addresses for testing replies and parsing
3. Review & Analyze
Access your sandbox to preview, test, and share all captured emails (both sent and received).
Quick Start
Create a Sandbox
Log in and create your first sandbox. Name it based on your project or environment.
Configure Your App
Update your application's SMTP settings with sandbox credentials.
Send Test Email
Send a test email from your application to verify the connection.
Analyze Results
Review the captured email in your sandbox inbox.
Integration Methods
SMTP Integration
Works with any application or framework:
API Integration with Official SDKs
Full programmatic access with our official SDKs for all major languages:
Node.js SDK:
PHP SDK:
Available SDKs:
Node.js/TypeScript
PHP
Python
Ruby
Java
Go
.NET
Email Address per Sandbox
Each sandbox automatically gets unique email addresses:
Framework Examples
Pre-configured for popular frameworks:
Laravel
Ruby on Rails
Django
Spring Boot
others
Testing Capabilities
Email Validation
HTML Validation: Check for rendering issues
Attachment Testing: Validate file handling
Deliverability Testing
Spam Score: SpamAssassin scoring
Blacklist Check: IP reputation verification
Header Analysis: Technical validation
Best Practices
Environment Separation
Use different sandboxes for dev, staging, QA
Name sandboxes clearly (e.g., "iOS App - Dev")
Document sandbox purposes
Testing Strategy
Test both happy path and edge cases
Check mobile responsiveness
Test with real data (safely)
Automate repetitive tests
Getting Started
Support & Resources
Next Steps
Create your first sandbox - Get started in minutes
Integrate with your app - Configure SMTP settings
Test email templates - Validate your emails
Share with team - Collaborate on testing
Last updated
Was this helpful?

