정보
이 스킬은 개발자가 Mailtrap에서 호스팅하는 템플릿을 사용하여 이메일을 보낼 수 있게 하여, 이메일 디자인과 애플리케이션 코드를 분리합니다. API 페이로드에 템플릿 UUID를 사용하고, 트랜잭셔널 또는 대량 발송 시 Handlebars 변수로 콘텐츠를 개인화하는 방법을 다룹니다. 템플릿화된 이메일을 생성, 발송 또는 디버깅해야 할 때 사용하세요.
빠른 설치
Claude Code
추천npx skills add mailtrap/mailtrap-skills -a claude-code/plugin add https://github.com/mailtrap/mailtrap-skillsgit clone https://github.com/mailtrap/mailtrap-skills.git ~/.claude/skills/using-email-templatesClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
Using Mailtrap email templates
Overview
Templates are edited in the Mailtrap UI, referenced by UUID from your app, and filled with Handlebars data at send time. The same template can be used with transactional and bulk (promotional) streams; pick the stream when you integrate.
Before generating SDK code: read the README of the relevant SDK repository linked below for current method signatures. Do not rely on memory.
Before generating API request bodies: use the official docs and examples below—request shapes belong in the API reference, not in guesses (including when using AI-assisted coding).
Template management via API (create/update/list outside the UI): Templates API.
Related skills: authorizing-api-requests (tokens, env vars, auth headers), sending-emails (bases and streams), testing-with-sandbox (preview sends without live delivery).
When to use
- When sending or testing emails with Mailtrap-hosted templates (UUID in the send payload)
- Creating or editing templates in the UI
- Templates CRUD via Templates API (automations, provisioning)
- API body using
template_uuidandtemplate_variables - Handlebars conditionals, loops, escaped vs unescaped HTML
Quick reference
API operations
In the developer docs, open:
- Transactional – Send email (including template) (
https://send.api.mailtrap.io) - Bulk – Send email (including template) (
https://bulk.api.mailtrap.io)
Request body variant is typically EmailFromTemplate in the interactive reference.
Authorization
Send with Authorization: Bearer $MAILTRAP_API_TOKEN on the matching stream host (send.api.mailtrap.io or bulk.api.mailtrap.io). Token scope, storage, and the alternative Api-Token header are covered in skill authorizing-api-requests.
Example (curl) — template send
curl -X POST https://send.api.mailtrap.io/api/send \
-H "Authorization: Bearer $MAILTRAP_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"from": {"email": "[email protected]", "name": "Your App"},
"to": [{"email": "[email protected]"}],
"template_uuid": "your-uuid",
"template_variables": {"user_name": "Jane"}
}'
Payload shape
Replace literal text/html with template fields, for example:
template_uuid(from the template Integration tab)template_variables(object whose keys match Handlebars variables)
Exact required fields (e.g. from, to) follow the same rules as non-template sends for that stream.
Handlebars (supported patterns)
{{name}}— escaped output;{{{html}}}— raw HTML{{#if}}/{{#unless}},{{#each}},{{#with}}- Nested paths such as
{{order.id}} - Falsy values that suppress blocks include empty string,
0,false, empty collections (see product docs)
Full syntax and examples: Using Handlebars with Email Templates. Testing workflow: Testing templates with Handlebars. Sandbox preview sends: Send test emails (sandbox).
Where templates live
Templates in the app sidebar. UUID and stream-specific integration snippets are under each template's Integration tab.
Generating template HTML
Proactively offer to generate the template HTML when the user is creating a new template — don't wait to be asked. The output must be a real email template — not arbitrary web HTML — and must be mobile-compatible (responsive, renders well across email clients and screen sizes).
SDKs
Common mistakes
| Mistake | Fix |
|---|---|
Mixing text/html with template_uuid | Use template fields per API schema for template sends |
| Skipping sandbox for risky changes | Preview with sandbox sending / Testing API (see testing-with-sandbox and send test emails) |
GitHub 저장소
자주 묻는 질문
using-email-templates Skill이란 무엇인가요?
using-email-templates은(는) mailtrap이(가) 만든 Claude Skill입니다. Skill은 Claude가 필요할 때 불러오는 지침과 리소스를 묶어 추가 프롬프트 없이 using-email-templates 관련 작업을 수행할 수 있게 합니다.
using-email-templates은(는) 어떻게 설치하나요?
이 페이지의 설치 명령을 사용하세요. using-email-templates을(를) Claude Code 플러그인으로 추가하거나 저장소를 skills 디렉터리에 복제한 다음 Claude를 다시 시작해 Skill을 불러옵니다.
using-email-templates은(는) 어떤 카테고리에 속하나요?
using-email-templates은(는) 메타 카테고리에 속합니다.
using-email-templates은(는) 무료로 사용할 수 있나요?
네. using-email-templates은(는) AIMCP에 등록되어 있으며 무료로 설치할 수 있습니다.
연관 스킬
이 스킬은 콘텐츠 콜렉션(Content Collections)을 위한 프로덕션 검증된 설정을 제공합니다. 콘텐츠 콜렉션은 Markdown/MDX 파일을 Zod 검증이 포함된 타입 안전한 데이터 콜렉션으로 변환해주는 TypeScript 최우선 도구입니다. 블로그, 문서 사이트 또는 콘텐츠 중심의 Vite + React 애플리케이션을 구축할 때 타입 안전성과 자동 콘텐츠 검증을 보장하기 위해 사용하세요. Vite 플러그인 구성과 MDX 컴파일부터 배포 최적화 및 스키마 검증에 이르기까지 모든 것을 다룹니다.
이 스킬은 개발자들이 Polymarket 예측 시장 플랫폼을 활용한 애플리케이션을 구축할 수 있도록 지원하며, 거래 및 시장 데이터를 위한 API 통합 기능을 포함합니다. 또한 WebSocket을 통한 실시간 데이터 스트리밍을 제공하여 실시간 거래와 시장 활동을 모니터링할 수 있습니다. 이를 통해 거래 전략을 구현하거나 실시간 시장 업데이트를 처리하는 도구를 생성하는 데 활용할 수 있습니다.
이 스킬은 개발자들이 명령어, 파일, LSP 작업 등 25개 이상의 이벤트 유형에 연결되는 OpenCode 플러그인을 만들 수 있도록 돕습니다. JavaScript/TypeScript 모듈을 위한 플러그인 구조, 이벤트 API 명세, 구현 패턴을 제공합니다. OpenCode AI 어시스턴트의 라이프사이클을 사용자 정의 이벤트 기반 로직으로 가로채거나, 모니터링하거나, 확장해야 할 때 사용하세요.
SGLang은 RadixAttention 프리픽스 캐싱을 활용하여 JSON, 정규식, 에이전트 워크플로우를 위한 고속 구조화 생성에 특화된 고성능 LLM 서빙 프레임워크입니다. 특히 반복되는 프리픽스가 있는 작업에서 상당히 빠른 추론 속도를 제공하여 복잡한 구조화 출력 및 다중 턴 대화에 이상적입니다. 제약 디코딩이 필요하거나 광범위한 프리픽스 공유가 있는 애플리케이션을 구축할 때는 vLLM과 같은 대안보다 SGLang을 선택하십시오.
