Inboxes are dedicated email receivers within your projects. Each inbox provides isolated credentials for testing emails from different environments, applications, or features. You can create multiple inboxes per project to organize your email testing workflow.
Every inbox automatically generates unique credentials that can be used to send emails via API or SMTP, making integration with your application straightforward.
To create a new inbox in your project:
- Navigate to your project
- Click on "Inboxes" in the sidebar or header
- Click the "Create Inbox" button
- Enter a descriptive name for your inbox (e.g., "Staging Environment", "Production Notifications")
- Optionally, select the technology/framework you'll be integrating with
- Click "Create" to generate your inbox
Upon creation, Mailsandbox automatically generates secure credentials for your inbox:
- API Key - Starts with "ms_" followed by 40 random characters
- SMTP Username - Starts with "ms_" followed by 12 random lowercase characters
- SMTP Password - 14 random lowercase characters
Mailsandbox supports two primary methods for sending emails to your inboxes: API integration and SMTP integration. Choose the method that best fits your application architecture.
API Integration
The API integration allows you to send emails to your inbox using HTTP requests. This method is ideal for modern applications and provides simple, RESTful communication.
To integrate using the API:
- Copy your API key from the inbox settings
- Include the API key in your application's email configuration
- Send POST requests to the Mailsandbox API endpoint with your email data
- View code examples for your specific technology in the inbox dashboard
SMTP Integration
SMTP integration provides traditional email server connectivity. This method works with any application that supports SMTP, making it universally compatible.
Configure your application with these SMTP settings:
- Host - smtp.mailsandbox.test (or your Mailsandbox domain)
- Port - 587 (STARTTLS) or 465 (SSL)
- Username - Your inbox SMTP username
- Password - Your inbox SMTP password
- Encryption - TLS or SSL
Once your inbox is configured and emails are being sent, you can view them in real-time through the Mailsandbox interface.
Access your inbox by:
- Selecting your project from the project selector
- Clicking on "Inboxes" in the navigation
- Selecting the specific inbox you want to view
Email Features
The inbox view provides comprehensive email inspection capabilities:
- HTML Preview - View rendered HTML emails in an isolated iframe
- Plain Text View - Read plain text versions of emails
- Raw Source - Inspect the complete email source code
- Headers - View all email headers including authentication results
- Attachments - Download and preview email attachments
- Metadata - See sender, recipient, subject, and timestamp information
Sharing Emails
You can share individual emails with team members or stakeholders using secure sharing links:
- Open the email you want to share
- Click the "Share" button
- Generate a unique sharing URL
- Set an optional expiration time for the link
- Copy and send the URL to recipients
Shared emails can be viewed without authentication, making it easy to collaborate on email testing and debugging.
Inboxes can be managed from the inbox settings page. Available management options include:
- Rename - Update the inbox name to reflect its purpose
- Archive - Archive inboxes that are no longer in active use while preserving all emails
- Delete - Permanently remove an inbox and all its emails (cannot be undone)
- View Credentials - Access API keys and SMTP credentials at any time
The inbox overview also displays helpful statistics:
- Email Count - Total number of emails received
- Last Activity - Timestamp of the most recent email
- Storage Used - Disk space consumed by emails and attachments