> For the complete documentation index, see [llms.txt](https://docs.mailtrap.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mailtrap.io/getting-started/email-sandbox.md).

# Email Sandbox

Learn how to inspect and debug emails with sandbox functionality.

**What you can do:**

1. Catch testing emails from staging.
2. Preview and analyze content for spam.
3. Validate HTML/CSS before sending emails.

### Good to know

* Your emails won't reach your users as you use our Sandbox SMTP.
* You don't need to verify a domain to use sandbox.

### Overview

{% @arcade/embed url="<https://app.arcade.software/share/GOawR3yCP4Qi9CT9nkM6>" flowId="GOawR3yCP4Qi9CT9nkM6" %}

{% stepper %}
{% step %}
**Navigate to Email Sandbox**

Go to [your first Sandbox](https://mailtrap.io/sandboxes) by clicking **Sandboxes**, then My **Sandbox**.

{% hint style="info" %}
By default, we created a sandbox for you and called it "My Sandbox". The Edit button on the far right allows you to rename either a project or a sandbox.
{% endhint %}

Once inside My **Sandbox**, copy the credentials from the **Integration** tab to your clipboard.

Or, use one of the pre-made code snippets for major programming languages and frameworks:
{% endstep %}

{% step %}
**Send your first test email**

After sending the first test email, you can immediately find it in your Mailtrap sandbox.

Click on the email, and proceed to inspect and debug it by selecting the HTML Check tab.

Lastly, you can automate the QA flow with [API](https://docs.mailtrap.io/developers/email-sandbox/send-test-emails) if you need it.
{% endstep %}

{% step %}
**Bonus: Invite your colleagues**

Mailtrap is a collaborative tool. Starting from the [Team Plan](https://mailtrap.io/settings/billing/plans/sandboxes), you can create different sandboxes and projects and share them with your colleagues.

This allows you to organize all testing-related workflows among different people, from user management with different permissions to SSO.
{% endstep %}
{% endstepper %}

### What else you can do with Email Sandbox

* [Enable email per sandbox feature](/email-sandbox/setup/email-address-per-sandbox.md)
* [HTML or RAW format preview](/email-sandbox/testing/email-template.md)
* [HTML Check](/email-sandbox/testing/email-html.md)
* [Automatic Forwarding](/email-sandbox/management/automatic-email-forwarding.md) and [Manual Forwarding](/email-sandbox/management/manual-email-forwarding.md) to view emails in real sandboxes
* [Test Bcc and email headers](/email-sandbox/testing/email-headers-and-bcc.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.mailtrap.io/getting-started/email-sandbox.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
