get-sandbox-message-eml
Get the message rendered as an EML file payload (suitable for attaching to a ticket or importing into another mail client).
How to use it
get-sandbox-message-eml is exposed by the Mailtrap MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the get-sandbox-message-eml tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Mailtrap MCP
npx @smithery/cli install mailtrapOther tools in Mailtrap MCP (39)
Sends a batch of bulk emails through Mailtrap's bulk-stream API. Same base + requests[] shape, validation, and inline-vs-template rules as batch-send-transactional-email — the only difference is that this tool routes the call through the bulk endpoint instead of the transactional one. See the parame
Sends a batch of emails to your Mailtrap test inbox in one API call, without delivering to real recipients. Same base + requests[] shape, validation, and inline-vs-template rules as batch-send-transactional-email — the difference is that this tool routes the call through the sandbox endpoint for a s
Sends a batch of transactional emails in one Mailtrap API call (default sending stream). Shared fields go on base; per-recipient overrides go in requests[]. Each request must include at least one recipient via to, cc, or bcc. Same inline-vs-template mutual exclusion as send-email — checked after mer
Create a new sending domain. After creation, add DNS records to verify the domain (use get-sending-domain with includesetupinstructions: true to see the records).
Creates a new email template in your Mailtrap account.
Delete a single sandbox message.
Delete a sending domain.
Deletes an existing email template.
Enable the receive-by-email address for a sandbox (turns on the Mailtrap address that delivers messages to the sandbox via SMTP).
Forward a sandbox message to an external email address. Counts against your monthly forwarding quota.
Gets a single email log message by ID (UUID): a readable summary (from, to, subject, sent time, status, category, stream, engagement, delivery context), then detailed event history. Optionally, with includecontent: true, you can also load and show the message body (HTML and plain text) when Mailtrap
Get metadata and download URL for a single attachment.
Get the parsed mail headers for a sandbox message.
Get the rendered HTML body of a sandbox message.
Get the HTML analysis report for a sandbox message (client compatibility scores, problematic elements). Standalone alternative to includehtmlanalysis: true on show-sandbox-email-message.
Get the unrendered HTML source of a sandbox message (HTML before any Mailtrap-side transformations like CID-link rewrites).
Get the raw, MIME-formatted message (headers + body) for a sandbox message.
Get the SpamAssassin spam report for a sandbox message (score, rules, full report). Standalone alternative to includespamreport: true on show-sandbox-email-message.
Get the plain-text body of a sandbox message.
Retrieves a list of messages from your Mailtrap test inbox. Useful for checking what emails have been received in your sandbox during testing.
Get a sandbox project by ID, including its inboxes and email counts.
Get a sending domain by ID and its verification status (including DNS records). Optionally include DNS setup instructions by setting includesetupinstructions to true.
Get email sending statistics (delivery, bounce, open, click, spam rates) for a date range. Optionally break down by domain, category, email service provider, or date. Check delivery rates without leaving the editor.
Get a single email template by ID, including subject, category, and HTML/text body.
Lists sent email logs (delivery history) with optional pagination and filters. Use to debug delivery issues from the IDE.
List all attachments on a sandbox message (filename, content type, size, download path).
List every sandbox accessible to the API token across all projects.
List sending domains and their DNS verification status.
Lists all email templates in your Mailtrap account.
Mark all messages in a sandbox as read.
Reset the SMTP credentials for a sandbox. Returns the new username/password.
Generate a new receive-by-email address for a sandbox.
Sends a transactional email through Mailtrap. Supports two mutually exclusive modes — inline content (subject + text/html) or template-based (templateuuid).
Sends an email to your Mailtrap test inbox for development and testing purposes. This is perfect for testing email templates without sending emails to real recipients. Supports the same two modes as send-email — inline content or template-based (templateuuid).
Shows detailed information and content of a specific email message from your Mailtrap test inbox, including HTML and text body content.
Mark a sandbox message as read or unread.
Rename an existing sandbox project.
Update a sending domain's tracking and inbound settings.
Updates an existing email template.