# Help & Support

Find answers to common questions and troubleshoot issues with Email Sandbox. Our comprehensive help resources are designed to get you back on track quickly.

## Resources

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Frequently Asked Questions</strong></td><td><em>Browse our comprehensive FAQ section for quick answers to common questions about Email Sandbox setup, integration, testing features, and best practices.</em></td><td><a href="help/faqs">faqs</a></td></tr><tr><td><strong>Troubleshooting</strong></td><td><em>Step-by-step solutions for common issues including connection problems, email capture issues, and configuration errors.</em></td><td><a href="help/troubleshooting">troubleshooting</a></td></tr></tbody></table>

## Common issues & solutions

### Connection issues

#### Can't connect to Sandbox SMTP

1. **Verify credentials**: Check username and password
2. **Confirm port**: Use 2525, 25, 587, or 465
3. **Check firewall**: Ensure ports aren't blocked
4. **Test connection**: Use telnet or nc command

```bash
telnet sandbox.smtp.mailtrap.io 2525
```

#### Emails not appearing in Sandbox

1. **Check sandbox limits**: Free plan has 500 emails/month
2. **Verify credentials**: Ensure using correct sandbox
3. **Check spam folder**: Some emails may be filtered
4. **Review email size**: Maximum 5MB including attachments
5. **API rate limits**: Check if hitting rate limits

### Configuration problems

#### Framework integration not working

* **Laravel**: Clear config cache with `php artisan config:clear`
* **Rails**: Restart server after config changes
* **Django**: Check `EMAIL_BACKEND` setting
* **Node.js**: Verify environment variables loaded

#### Authentication failures

```
535 5.7.0 Invalid login or password
```

Solution:

* Copy credentials directly from Mailtrap dashboard
* Don't use email address as username
* Regenerate credentials if needed

### Testing issues

#### HTML not rendering correctly

* Use HTML Check tool to validate code
* Test with different email clients
* Check for missing closing tags
* Validate CSS compatibility

#### Attachments not working

* Verify file size < 5MB total
* Check MIME type configuration
* Ensure proper encoding (base64)
* Test with different file types

## Getting help

### Self-service resources

1. **Search documentation**: Use the search bar above
2. **Check FAQs**: [Frequently Asked Questions](https://docs.mailtrap.io/email-sandbox/help/faqs)
3. **Review troubleshooting**: [Common issues](https://docs.mailtrap.io/email-sandbox/help/troubleshooting)
4. **API reference**: [API Documentation](https://api-docs.mailtrap.io/)

### <i class="fa-comments-question-check">:comments-question-check:</i>Contact Support

If you can’t find the answer you need in our documentation and would like to contact support and speak with an agent, we’re here to help.

You can get in touch with the Mailtrap Support team using one of the following ways:

* **From your Mailtrap account**&#x20;

1. Log in to your account [here](https://mailtrap.io/signin).
2. Go to the <i class="fa-circle-question">:circle-question:</i>[<mark style="color:$primary;">**Help Center**</mark>](https://mailtrap.io/help-center) > <i class="fa-message-dots">:message-dots:</i> Get Help
3. Click <mark style="color:$primary;">**Start conversation.**</mark>&#x20;

<figure><img src="https://1476453098-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS3xyr7ba7aGO19rc8dSK%2Fuploads%2F7hftpJFYZKk1D4GQCYd8%2FScreenshot%202026-02-19%20at%2017.12.57.png?alt=media&#x26;token=90aebf2d-07b7-4c5b-aa6b-07623bc02077" alt=""><figcaption></figcaption></figure>

* **Email us at** 📧 <support@mailtrap.io><br>

Whether you need technical assistance, help troubleshooting an issue, or simply want to talk to customer support, our team will be happy to assist you.

### Before contacting support

Please have the following information ready:

* Account email address
* Sandbox ID or name
* Error messages (exact wording)
* Steps to reproduce the issue
* Framework/language you're using
* Code snippets (if applicable)

## Quick solutions

### Email capture issues

| Problem            | Solution                             |
| ------------------ | ------------------------------------ |
| No emails received | Check credentials and connection     |
| Emails delayed     | Normal processing time is < 1 second |
| Missing emails     | Check inbox limits and filters       |
| Partial content    | Verify email size < 5MB              |

### API issues

| Error Code | Meaning      | Solution                 |
| ---------- | ------------ | ------------------------ |
| 401        | Unauthorized | Check API token          |
| 403        | Forbidden    | Verify permissions       |
| 404        | Not found    | Check inbox ID           |
| 429        | Rate limited | Implement backoff        |
| 500        | Server error | Retry or contact support |

### SMTP errors

| Error                 | Cause               | Fix                               |
| --------------------- | ------------------- | --------------------------------- |
| Connection refused    | Wrong port/host     | Use sandbox.smtp.mailtrap.io:2525 |
| Authentication failed | Invalid credentials | Copy from dashboard               |
| Message rejected      | Size limit exceeded | Keep under 5MB                    |
| Timeout               | Network issue       | Check firewall/proxy              |

## Debugging tools

### Connection testing

```bash
# Test SMTP connection
openssl s_client -connect sandbox.smtp.mailtrap.io:2525 -starttls smtp

# Test with curl
curl -v telnet://sandbox.smtp.mailtrap.io:2525
```

### Email testing

```python
# Python test script
import smtplib
from email.mime.text import MIMEText

def test_sandbox():
    msg = MIMEText('Test email body')
    msg['Subject'] = 'Test Subject'
    msg['From'] = 'test@example.com'
    msg['To'] = 'recipient@example.com'

    with smtplib.SMTP('sandbox.smtp.mailtrap.io', 2525) as server:
        server.login('YOUR_USERNAME', 'YOUR_PASSWORD')
        server.send_message(msg)
        print("Email sent successfully!")

test_sandbox()
```

## Best practices

### Optimal configuration

* Use port 2525 for best compatibility
* Enable STARTTLS for security
* Set reasonable timeout values
* Implement retry logic
* Use connection pooling

### Testing strategy

* Create separate sandboxes per environment
* Clear sandboxes regularly
* Use descriptive email subjects
* Tag emails with test IDs
* Automate common tests

### Team collaboration

* Share sandboxes appropriately
* Document sandbox purposes
* Use consistent naming
* Regular permission audits
* Communicate test schedules

## Community resources

### Tutorials & guides

* [Getting started video](https://www.youtube.com/watch?v=example)
* [Blog tutorials](https://mailtrap.io/blog/tag/sandbox/)
* [Integration examples](https://github.com/railsware/mailtrap-examples)

### Developer resources

* [API client libraries](https://github.com/railsware)
* [Postman collection](https://www.postman.com/mailtrap)
* [Code snippets](https://mailtrap.io/blog/test-emails-in-dev/)

## Feedback & suggestions

*We welcome technical feedback and contributions that help us improve Mailtrap’s functionality and documentation. Please use the appropriate channel depending on the type of request.*

#### <i class="fa-bug">:bug:</i>Bug Reports

**If you encounter a product issue or unexpected behavior, please** [#contact-support](#contact-support "mention")**.**

To help us investigate efficiently, include:

* A detailed description of the issue
* Exact reproduction steps
* Relevant stream, domain, sandbox, or account details
* Timestamps (including timezone)
* Screenshots or logs if available

#### <i class="fa-file-circle-plus">:file-circle-plus:</i>Feature Requests

For product improvements or new feature proposals, use our [Public Roadmap](https://mailtrap.featurebase.app/en) portal.

There you can:

* **Submit a new feature request**

<div align="left"><figure><img src="https://1476453098-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS3xyr7ba7aGO19rc8dSK%2Fuploads%2Ff9yf6pEv5ZXR4EHh5ABg%2FScreenshot%202026-03-02%20at%2010.32.03.png?alt=media&#x26;token=2cea9a79-0387-4fb3-988d-272d13327b77" alt="" width="375"><figcaption></figcaption></figure></div>

* **Upvote existing requests**

<div align="left"><figure><img src="https://1476453098-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS3xyr7ba7aGO19rc8dSK%2Fuploads%2Fax54DgMBWcXzIQEiLeCg%2FScreenshot%202026-03-02%20at%2010.33.40.png?alt=media&#x26;token=0454c018-c008-4287-a329-407bcd3e1c35" alt="" width="375"><figcaption></figcaption></figure></div>

* **Subscribe to updates for specific requests**

<div align="left"><figure><img src="https://1476453098-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS3xyr7ba7aGO19rc8dSK%2Fuploads%2FmB0AdDAkT5l43l0jmBps%2FScreenshot%202026-03-02%20at%2010.33.11.png?alt=media&#x26;token=790a0502-73e1-4bd2-803a-c4b4c7973d60" alt="" width="375"><figcaption></figcaption></figure></div>

:soon:**The following enhancements are currently planned:**

* GraphQL API
* Advanced search filters
* Email templates library
* Browser extension
* Mobile app

#### <i class="fa-file-doc">:file-doc:</i>Documentation Improvements

If you identify unclear, incomplete, or outdated documentation:

1. Use the **feedback widget** located on the right-hand side of the page to rate the article:\
   ![](https://1476453098-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS3xyr7ba7aGO19rc8dSK%2Fuploads%2FOLpynTOT2XMAP3d7c7Ct%2FScreenshot%202026-03-02%20at%2010.30.47.png?alt=media\&token=c71836e0-95da-47ae-b9d7-917dbebc9149)
2. **Provide specific feedback** describing what should be corrected, clarified, or expanded\
   ![](https://1476453098-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS3xyr7ba7aGO19rc8dSK%2Fuploads%2FU94kVQcPPjT7e6bgJz4m%2FScreenshot%202026-03-02%20at%2010.31.22.png?alt=media\&token=7e0ec64d-058e-4b47-a25f-4bd01d40e549)

This helps us continuously refine our docs.

#### <i class="fa-square-code">:square-code:</i>GitHub & Technical Collaboration

For open-source projects, SDKs, or public repositories, join us on [GitHub](https://github.com/mailtrap).
