본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)48k · #5136

mailtrap-testing-with-sandbox

하는 일

이 도구는 실제 수신자에게 전달되지 않는 테스트 이메일을 보내도록 합니다. 이메일이 제대로 발송되는지 확인하기 위한 테스트 받은편지함과 같습니다.

사용하는 경우

  • ✓웹사이트나 앱을 개발하며 발송 이메일을 테스트하고 싶을 때.
  • ✓고객에게 보내기 전에 이메일의 모습과 내용을 확인할 때.
  • ✓자동화된 테스트에서 이메일이 예상대로 작동하는지 확인할 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/mailtrap-testing-with-sandbox/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/mailtrap-testing-with-sandbox/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“테스트 이메일을 Mailtrap의 테스트 받은편지함으로 보내도록 설정해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

실제 수신자 주소 대신 특별한 Mailtrap 주소로 이메일이 가도록 시스템을 설정합니다. 이렇게 하면 이메일이 Mailtrap에 저장되어 확인할 수 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Testing with Mailtrap Email Sandbox

Overview

Email Sandbox captures mail in sandboxes (test inboxes)—a test environment where messages are not delivered to real recipients. You can send to sandboxes using our SDKs, HTTP API, or SMTP, depending on your needs.

Before generating SDK code: read the README of the relevant SDK repository (see mailtrap-sending-emails) for current sandbox mode options, inbox id, and constructor flags. Do not rely on memory.

Related skills: mailtrap-sending-emails (live sending hosts and streams).

When to use

  • You want no real delivery: dev, staging, CI, or demos where mail must stay in a test inbox.
  • You need to inspect what was sent: bodies, headers, attachments, or basic checks (e.g. spam report) via Sandbox / Testing API or the UI.
  • You are automating tests against captured mail.
  • You will only change SMTP settings so an existing app sends into a sandbox—no need for a framework-by-framework tutorial from this skill.

When not to use

  • Live sends to real recipients (mailtrap-sending-emails).
  • For full framework setup guides or detailed API references, link users to Mailtrap's Integration tab for SMTP/API details and the API docs for specifics—don't cover every framework or API field here.

Quick reference

API base

Service Send mail URL Auth header examples
Email Testing API (REST) https://sandbox.api.mailtrap.io/api/send/{inbox_id} Authorization: Bearer $MAILTRAP_SANDBOX_API_TOKEN

Tokens and account_id

Sandbox uses a separate token ($MAILTRAP_SANDBOX_API_TOKEN, Testing/Sandbox scope) — never reuse the live $MAILTRAP_API_TOKEN. The account_id in the example endpoints below is resolved at runtime via GET https://mailtrap.io/api/accounts. Store tokens in environment variables or a secrets manager.

When to use API vs SMTP

Use SMTP when testing apps that already send mail via SMTP (just update the host, port, and credentials). Use the HTTP API when building new integrations or your app can make HTTP requests; it's better for programmatic testing and automation.

SMTP settings (sandbox)

Setting Value
Host sandbox.smtp.mailtrap.io
Ports 2525 (default), 25, 465 (SSL), 587
Username / Password Per sandbox credentials from the Integration tab in the Mailtrap UI

Never use sandbox credentials or endpoints in production. Messages will only be captured in the sandbox, not delivered.

Key parameters

  • Inbox ID: Every sandbox (test inbox) has a unique inbox id, visible in the UI URL and needed for sending or REST API operations.
  • Token scope: Use a token with permissions for the relevant project and test inbox.

Typical use cases

  • Capture all outbound mail in dev, test, or staging (no real recipients).
  • View, validate, and assert message headers, bodies, HTML, attachments, or spam score.
  • Run integration or CI checks that read from the Email Sandbox API.
  • Test Mailtrap templates by pointing API or SDK/SMTP at sandbox.api.mailtrap.io / sandbox.smtp.mailtrap.io with a valid inbox id.

Example API paths

Use API docs for details, but typical endpoints include:

Operation URL Reference
List sandboxes GET https://mailtrap.io/api/accounts/$MAILTRAP_ACCOUNT_ID/inboxes Sandboxes API

…

자주 묻는 질문

Mailtrap 계정이 필요한가요?

네, 테스트 받은편지함을 쓰려면 Mailtrap 계정이 필요합니다.

실제 사람에게 이걸로 이메일을 보낼 수 있나요?

아니요, 이 도구는 테스트 전용입니다. 이메일은 실제 수신자에게 전달되지 않습니다.

테스트용으로 보낸 이메일은 어떻게 보나요?

이메일이 저장된 Mailtrap 화면에서 직접 볼 수 있습니다.

상세 정보

작성자의 원본 설명

Capture outbound email in Mailtrap Email Sandbox for development, staging, CI, HTML inspection, spam checks, and fake inbox tests.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#5136
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬