mailtrap-email-integration

mailtrap-email-integration is a skill for Claude Code, Codex from gongyijie85/dsh-ecc. It costs 54 tokens per session (778 once invoked), scanned B, original, MIT.

An integration guide for sending transactional email through Mailtrap, including its test sandbox and production setup. It covers API authentication and verifying a domain before real delivery.

In plain words
What is it for?
Use it when adding signup emails, password resets, notifications, or receipts; diagnosing delivery problems; or configuring email sending for a new project.
Why use it?
It helps prevent test emails from reaching real people and explains common reasons messages fail to arrive. It also keeps development and production email settings separate.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when adding signup emails, password resets, notifications, or receipts; diagnosing delivery problems; or configuring email sending for a new project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gongyijie85/dsh-ecc/mailtrap-email-integration
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add gongyijie85/dsh-ecc --skill mailtrap-email-integration
Clone the repo
git clone --depth 1 https://github.com/gongyijie85/dsh-ecc

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mailtrap-email-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/gongyijie85/dsh-ecc/mailtrap-email-integration/github.svg)](https://agentmods.dev/skills/gongyijie85/dsh-ecc/mailtrap-email-integration)
Your own site
<a href="https://agentmods.dev/skills/gongyijie85/dsh-ecc/mailtrap-email-integration"><img src="https://agentmods.dev/badge/skills/gongyijie85/dsh-ecc/mailtrap-email-integration/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mailtrap-email-integration

Your own site · 80×15
<a href="https://agentmods.dev/skills/gongyijie85/dsh-ecc/mailtrap-email-integration"><img src="https://agentmods.dev/badge/skills/gongyijie85/dsh-ecc/mailtrap-email-integration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 778 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.00778
Opus 5.5 $0.00022 $0.00311
Sonnet 5.5 $0.00011 $0.00156
Haiku 4.5 $0.00005 $0.00078

Measured 2mo ago against content hash 917fe931b1ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

mailtrap-email-integration scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

const response = await fetch("https://send.api.mailtrap.io/api/send", { method: "POST",
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/mailtrap-email-integration/SKILL.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mailtrap Email Integration

Patterns for adding transactional email sending to an application using Mailtrap's Email API and Sandbox, covering authentication, environment separation, and common delivery pitfalls.

When to Activate

  • Implementing a "send email" feature (signup confirmation, password reset, notifications, receipts)
  • Debugging why emails aren't arriving in dev/staging
  • Setting up a project's first email-sending integration
  • Reviewing code that calls an email API directly without sandbox separation

Core Concepts

Sandbox vs. Production separation. Mailtrap provides a Sandbox API that captures emails without delivering them, used for dev/staging so test emails never reach real inboxes. Production sending uses a separate, verified-domain endpoint. Never point a dev environment at the production sending endpoint.

Authentication. Requests use a Bearer token in the Authorization header. Tokens are scoped per project; sandbox and production typically use different tokens.

Domain verification. Production sending requires verifying a sending domain via DNS records (SPF, DKIM, DMARC) before Mailtrap will deliver to real recipients. Skipping this causes silent delivery failures or spam-folder placement.

Code Examples

// Sending via Mailtrap's Email API (production)
async function sendEmail(to: string, subject: string, html: string) {
  const response = await fetch("https://send.api.mailtrap.io/api/send", {
    method: "POST",
    headers: {
      "Authorization": `Bearer ${process.env.MAILTRAP_API_TOKEN}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      from: { email: "[email protected]", name: "Your App" },
      to: [{ email: to }],
      subject,
      html,
    }),
  });

  if (!response.ok) {
    throw new Error(`Email send failed: ${response.status}`);
  }
  return response.json();
}
// Same call, routed to Sandbox in non-production environments
const MAILTRAP_ENDPOINT = process.env.NODE_ENV === "production"
  ? "https://send.api.mailtrap.io/api/send"
  : `https://sandbox.api.mailtrap.io/api/send/${process.env.MAILTRAP_INBOX_ID}`;

Read the full file on GitHub · 78 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 78 lines · 54 tokens per session scan B 917fe931b1ce

Subscribe to this mod's changes

mailtrap-email-integration is a skill published in the GitHub repository gongyijie85/dsh-ecc (12 stars, last pushed 1mo ago), licensed MIT. It adds 54 tokens to every session and 778 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (sends data to an external url). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

mailtrap-email-integration compared with skills from other repositories

mailtrap-email-integration next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mailtrap-email-integrationgongyijie85/dsh-eccSkill121mo agoMITB54Claude Code, Codex
manage-taskboardshengsheng90/DSH-taskboardSkill3265d agoApache-2.0A88Codex
mcp-integrationSivan757/dsh-agent-plugins-marketSkill212d agoMITB95Claude Code, Codex
hook-developmentSivan757/dsh-agent-plugins-marketSkill212d agoMITA113Claude Code
agent-developmentSivan757/dsh-agent-plugins-marketSkill212d agoMITA77Claude Code, Codex
promentorLyn-77/ProMentorSkill811mo agoMITA85Codex
playlet-wechat-feedredfox-data/redfox-community-dshSkill93d agoMITA269Claude Code, Codex