get-sandbox-message-text

MCP tool from Mailtrap MCP by mailtrap

Get the plain-text body of a sandbox message.

How to use it

get-sandbox-message-text 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-text 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 mailtrap
FULL MAILTRAP MCP LISTING

Other tools in Mailtrap MCP (39)

batch-send-bulk-email

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

batch-send-sandbox-email

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

batch-send-transactional-email

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-sending-domain

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).

create-template

Creates a new email template in your Mailtrap account.

delete-sandbox-message

Delete a single sandbox message.

delete-sending-domain

Delete a sending domain.

delete-template

Deletes an existing email template.

enable-sandbox-email-address

Enable the receive-by-email address for a sandbox (turns on the Mailtrap address that delivers messages to the sandbox via SMTP).

forward-sandbox-message

Forward a sandbox message to an external email address. Counts against your monthly forwarding quota.

get-email-log-message

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-sandbox-attachment

Get metadata and download URL for a single attachment.

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).

get-sandbox-message-headers

Get the parsed mail headers for a sandbox message.

get-sandbox-message-html

Get the rendered HTML body of a sandbox message.

get-sandbox-message-html-analysis

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-sandbox-message-html-source

Get the unrendered HTML source of a sandbox message (HTML before any Mailtrap-side transformations like CID-link rewrites).

get-sandbox-message-raw

Get the raw, MIME-formatted message (headers + body) for a sandbox message.

get-sandbox-message-spam-score

Get the SpamAssassin spam report for a sandbox message (score, rules, full report). Standalone alternative to includespamreport: true on show-sandbox-email-message.

get-sandbox-messages

Retrieves a list of messages from your Mailtrap test inbox. Useful for checking what emails have been received in your sandbox during testing.

get-sandbox-project

Get a sandbox project by ID, including its inboxes and email counts.

get-sending-domain

Get a sending domain by ID and its verification status (including DNS records). Optionally include DNS setup instructions by setting includesetupinstructions to true.

get-sending-stats

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-template

Get a single email template by ID, including subject, category, and HTML/text body.

list-email-logs

Lists sent email logs (delivery history) with optional pagination and filters. Use to debug delivery issues from the IDE.

list-sandbox-attachments

List all attachments on a sandbox message (filename, content type, size, download path).

list-sandboxes

List every sandbox accessible to the API token across all projects.

list-sending-domains

List sending domains and their DNS verification status.

list-templates

Lists all email templates in your Mailtrap account.

mark-sandbox-as-read

Mark all messages in a sandbox as read.

reset-sandbox-credentials

Reset the SMTP credentials for a sandbox. Returns the new username/password.

reset-sandbox-email-address

Generate a new receive-by-email address for a sandbox.

send-email

Sends a transactional email through Mailtrap. Supports two mutually exclusive modes — inline content (subject + text/html) or template-based (templateuuid).

send-sandbox-email

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).

show-sandbox-email-message

Shows detailed information and content of a specific email message from your Mailtrap test inbox, including HTML and text body content.

update-sandbox-message

Mark a sandbox message as read or unread.

update-sandbox-project

Rename an existing sandbox project.

update-sending-domain

Update a sending domain's tracking and inbound settings.

update-template

Updates an existing email template.