मुख्य सामग्री पर जाएँ
Skillpedia
API और सर्वर (backend)48k · #5136

mailtrap-testing-with-sandbox

यह क्या करती है

यह टूल आपको बिना असली प्राप्तकर्ताओं तक पहुँचे टेस्ट ईमेल भेजने देता है। यह एक टेस्ट इनबॉक्स जैसा है, जहाँ आप जाँच सकते हैं कि आपके ईमेल सही तरीके से भेजे जा रहे हैं या नहीं।

कब इस्तेमाल करें

  • ✓जब आप कोई वेबसाइट या ऐप बना रहे हों और जाने वाले ईमेल टेस्ट करना चाहते हों।
  • ✓ग्राहकों को भेजने से पहले ईमेल का लुक और कंटेंट जाँचने के लिए।
  • ✓ऑटोमेटेड टेस्ट में यह पक्का करने के लिए कि ईमेल सही काम करते हैं।

Skill का लिंक

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 में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/mailtrap-testing-with-sandbox/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे टेस्ट इनबॉक्स में टेस्ट ईमेल भेजने के लिए Mailtrap सेट करो।”

हर हफ़्ते 5 नई skills, 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
अपडेट की गई
15/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

00-andruia-consultant

48k

आपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।

AI और एजेंटएजेंट

007

48k

आपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।

कोडिंगसिक्योरिटी

10-andruia-skill-smith

48k

आपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।

AI और एजेंटएजेंट

20-andruia-niche-intelligence

48k

आपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।

लेखन और डॉक्यूमेंटरिसर्च

मिलती-जुलती skills