1
    testing-with-sandbox

    testing-with-sandbox

    by Daryna Ivanova

    Safely capture and inspect test emails in a staging environment without sending to real recipients.

    Updated Jun 2026
    0 installs

    Free

    Included in download

    • Downloadable skill package
    • 2 permissions declared
    • Instant install

    Sample input

    Show me how to configure my Node.js app to send test emails to my Mailtrap sandbox inbox #123456.

    Sample output

    Install the mailtrap package, then use the following config:

    const { MailtrapClient } = require("mailtrap");
    
    const client = new MailtrapClient({
      token: process.env.MAILTRAP_SANDBOX_TOKEN,
      testInboxId: 123456,
    });
    

    Note: Ensure you use the Sandbox-specific API token.

    About This Skill

    Teaches agents to route outbound mail into a Mailtrap Email Sandbox (test inbox) so nothing reaches real recipients during development, staging, or CI. Covers both the HTTP Testing API (sandbox.api.mailtrap.io) and SMTP approach, how to obtain and use inbox_id, the separate sandbox token scope, and how to read and assert on captured messages via the Sandbox API. Includes SDK guidance and a common-mistakes table.

    Use Cases

    • Route dev/staging emails to a safe virtual inbox for inspection.
    • Automate CI checks to verify email delivery and content via REST API.
    • Preview and validate HTML email templates safely before going live.
    • Check spam scores and header validity for all outbound test mail.

    Reviews

    No reviews yet - be the first to share your experience.

    Only users who have downloaded or purchased this skill can leave a review.

    Security Scanned

    Passed automated security review

    Permissions

    Terminal / Shell
    Network Access

    Allowed Hosts

    docs.mailtrap.io
    sandbox.api.mailtrap.io
    mailtrap.io
    github.com

    Works with any SKILL.md-compatible agent.

    Frequently Asked Questions

    More Premium Skills

    Free