> 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/developers/email-sandbox.md).

# Email Sandbox

- [Send Test Emails](https://docs.mailtrap.io/developers/email-sandbox/send-test-emails.md): Send emails to sandbox
- [Send email (including templates)](https://docs.mailtrap.io/developers/email-sandbox/send-test-emails/send-email-including-templates.md)
- [Batch send email (including templates)](https://docs.mailtrap.io/developers/email-sandbox/send-test-emails/batch-send-email-including-templates.md)
- [Projects](https://docs.mailtrap.io/developers/email-sandbox/projects.md): Organize test environments
- [Get a list of projects](https://docs.mailtrap.io/developers/email-sandbox/projects/get-a-list-of-projects.md)
- [Create project](https://docs.mailtrap.io/developers/email-sandbox/projects/create-project.md)
- [Get project by ID](https://docs.mailtrap.io/developers/email-sandbox/projects/get-project-by-id.md)
- [Delete project](https://docs.mailtrap.io/developers/email-sandbox/projects/delete-project.md)
- [Update project](https://docs.mailtrap.io/developers/email-sandbox/projects/update-project.md)
- [Sandboxes](https://docs.mailtrap.io/developers/email-sandbox/sandboxes.md): Manage test sandboxes
- [Get a list of sandboxes](https://docs.mailtrap.io/developers/email-sandbox/sandboxes/get-a-list-of-sandboxes.md)
- [Create a sandbox](https://docs.mailtrap.io/developers/email-sandbox/sandboxes/create-a-sandbox.md)
- [Get sandbox attributes](https://docs.mailtrap.io/developers/email-sandbox/sandboxes/get-sandbox-attributes.md)
- [Delete a sandbox](https://docs.mailtrap.io/developers/email-sandbox/sandboxes/delete-a-sandbox.md)
- [Update a sandbox](https://docs.mailtrap.io/developers/email-sandbox/sandboxes/update-a-sandbox.md)
- [Clean sandbox](https://docs.mailtrap.io/developers/email-sandbox/sandboxes/clean-sandbox.md)
- [Mark as read](https://docs.mailtrap.io/developers/email-sandbox/sandboxes/mark-as-read.md)
- [Reset credentials](https://docs.mailtrap.io/developers/email-sandbox/sandboxes/reset-credentials.md)
- [Enable email address](https://docs.mailtrap.io/developers/email-sandbox/sandboxes/enable-email-address.md)
- [Reset email address](https://docs.mailtrap.io/developers/email-sandbox/sandboxes/reset-email-address.md)
- [Messages](https://docs.mailtrap.io/developers/email-sandbox/messages.md): Inspect captured emails
- [Show email message](https://docs.mailtrap.io/developers/email-sandbox/messages/show-email-message.md)
- [Delete message](https://docs.mailtrap.io/developers/email-sandbox/messages/delete-message.md)
- [Update message](https://docs.mailtrap.io/developers/email-sandbox/messages/update-message.md)
- [Get messages](https://docs.mailtrap.io/developers/email-sandbox/messages/get-messages.md)
- [Forward message](https://docs.mailtrap.io/developers/email-sandbox/messages/forward-message.md)
- [Get message spam score](https://docs.mailtrap.io/developers/email-sandbox/messages/get-message-spam-score.md)
- [Get message HTML analysis](https://docs.mailtrap.io/developers/email-sandbox/messages/get-message-html-analysis.md)
- [Get text message](https://docs.mailtrap.io/developers/email-sandbox/messages/get-text-message.md)
- [Get raw message](https://docs.mailtrap.io/developers/email-sandbox/messages/get-raw-message.md)
- [Get message source](https://docs.mailtrap.io/developers/email-sandbox/messages/get-message-source.md)
- [Get HTML message](https://docs.mailtrap.io/developers/email-sandbox/messages/get-html-message.md)
- [Get message as .eml](https://docs.mailtrap.io/developers/email-sandbox/messages/get-message-as-eml.md)
- [Get mail headers](https://docs.mailtrap.io/developers/email-sandbox/messages/get-mail-headers.md)
- [Attachments](https://docs.mailtrap.io/developers/email-sandbox/attachments.md): Handle email attachments
- [Get attachments](https://docs.mailtrap.io/developers/email-sandbox/attachments/get-attachments.md)
- [Get single attachment](https://docs.mailtrap.io/developers/email-sandbox/attachments/get-single-attachment.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/developers/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.
