Skills Plugins MCP Prompt Model 博客 我的中心
开发编程 #api #email #ai #agent

mailtrap-email-integration

Guides agents through integrating transactional email sending via Mailtrap's Email API, including sandbox testing, domain verification, and API authentication. Use when implementing email-sending features, debugging delivery issues, or setting up safe dev/staging email testing.

DeepseekModel 官方收录技能 质量 优秀 · 90 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=affaan-m-ecc-skills-mailtrap-email-integration-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name mailtrap-email-integration description Guides agents through integrating transactional email sending via Mailtrap's Email API, including sandbox testing, domain verification, and API authentication. Use when implementing email-sending features, debugging delivery issues, or setting up safe dev/staging email testing. origin ECC 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 : "no-reply@yourverifieddomain.com" , 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} ` ; Anti-Patterns Anti-Pattern Why It's a Problem Instead Using the production sending endpoint in dev/test Real test emails reach real inboxes, risking spam complaints and leaked test data Route non-production environments to the Sandbox endpoint Hardcoding API tokens in source Credential leak risk if committed to version control Load tokens from environment variables / secrets manager Sending before domain verification completes Emails silently fail or land in spam Verify SPF/DKIM/DMARC records before enabling production sending No retry/error handling on send failures Silent notification failures (e.g., user never gets password reset email) Check response status, log failures, surface actionable errors Best Practices Keep sandbox and production tokens in separate environment variables, never share one token across environments Verify sending domain DNS records before any production launch involving email Log delivery failures with enough context to debug (recipient, template, timestamp, response code) Treat email sending as a fallible network call: wrap in try/catch, never assume success Related Skills api-and-interface-design , security-and-hardening , ci-cd-and-automation
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。