mailtrap-sending-emails
Skill này làm gì
Công cụ này giúp bạn gửi email thật qua Mailtrap. Bạn có thể cài đặt gửi bằng Email API hoặc SMTP, cho cả email giao dịch (như xác nhận đơn hàng) lẫn email hàng loạt (như bản tin).
Khi nào nên dùng
- ✓Khi bạn cấu hình gửi email xác nhận mật khẩu.
- ✓Khi bạn gửi bản tin khuyến mãi cho khách hàng.
- ✓Khi bạn xử lý sự cố thông báo tự động từ ứng dụng của mình.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/mailtrap-sending-emails/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Làm thế nào để thiết lập Mailtrap gửi email giao dịch bằng API?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Mailtrap có nhiều cách gửi email, như API trực tiếp hoặc cài đặt SMTP. Bạn chọn cách phù hợp tùy email là thông báo hệ thống (giao dịch) hay chiến dịch marketing (hàng loạt).
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Sending emails (Mailtrap)
Overview
Mailtrap sends live email over Email API (REST) or SMTP. Two streams apply for API/SMTP: Transactional (non-promotional, app-generated) and Bulk (promotional / marketing volume). Batch is not a third stream: it is how you submit many messages in one request on whichever stream matches the content. Campaigns are a separate product path for promotional mail to Mailtrap contacts. Pair this sheet with the Transactional / Bulk developer pages when building or debugging integrations (including with AI-assisted coding).
When to Use
Use when integrating, configuring, or troubleshooting Mailtrap live email sending with Email API, SMTP, transactional streams, bulk streams, or batch requests.
How to integrate (preference order)
Preferred order:
- Plugin or integration for the user's platform (no-code or minimal-config) where available
- Official SDK for your language when one exists (maintained clients, typed helpers, less room for URL/auth mistakes).
- HTTP Email API when there is no SDK or the SDK does not fit (direct
POSTto/api/sendor/api/batchwith JSON). - SMTP only when you really need it (legacy stack, host/platform that only speaks SMTP, or hard constraints that rule out HTTP).
Choosing how to send
| Approach | Use when |
|---|---|
| Transactional, single message | Email generated by your app (password resets, receipts, notifications, alerts). One logical message per POST https://send.api.mailtrap.io/api/send |
| Bulk | Promotional email to contacts that you manage on your side and send at volume through Mailtrap. Not the same as "batch": bulk is the stream, not the batch endpoint. |
| Batch | You have multiple different messages to hand off at the same time (up to 500 per request). Cuts HTTP overhead; can be applied to both transactional and bulk |
| Campaigns | Promotional email to recipients stored as Mailtrap contacts, using Mailtrap Campaigns (audiences, scheduling, reporting in the product). Recommended to avoid implementing contact management and email sending logic; requires UI setup before sends flow—this skill does not replace that workflow. |
Before generating SDK code: read the README of the relevant SDK repository linked in the SDKs section below for current method signatures, constructor options, and examples. Do not rely on memory.
Related skills: mailtrap-testing-with-sandbox (safe testing) and mailtrap-setting-up-sending-domain (verification before send).
When not to use
- Sandbox only—capturing mail without delivery, reading messages in a sandbox (
mailtrap-testing-with-sandbox). - The main ask is webhooks, step-by-step Campaigns UI setup, or deliverability deep-dives.
- Exhaustive API reference—once the user's path is clear, link the official send docs for full schemas, optional fields, and edge cases.
Quick reference
Email API
…
Câu hỏi thường gặp
Email giao dịch và email hàng loạt khác nhau thế nào?
Email giao dịch do ứng dụng của bạn tạo ra, ví dụ đặt lại mật khẩu hoặc biên lai. Email hàng loạt dùng cho marketing hoặc khuyến mãi và được gửi với số lượng lớn.
“Batch” là gì?
“Batch” nghĩa là gửi nhiều thông điệp khác nhau trong một yêu cầu để tối ưu việc gửi. Cách này dùng được cho cả email giao dịch lẫn email hàng loạt.
Bạn có thể dùng công cụ này để thử email mà không gửi không?
Không. Công cụ này dùng để gửi email thật. Để thử nghiệm mà không gửi, bạn hãy dùng skill 'mailtrap-testing-with-sandbox'.
Chi tiết
Mô tả gốc của tác giả
Configure or troubleshoot Mailtrap live email sending with Email API, SMTP, transactional streams, bulk streams, or batches.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #5134
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
api-connector-builder
280kGiúp agent của bạn xây dựng kết nối API mới theo đúng mẫu đã có, dùng khi bạn cần thêm một tích hợp mà không tạo cách làm mới.
api-design
280kGiúp agent của bạn thiết kế REST API theo các thực hành tốt nhất, hữu ích để định nghĩa cách API giao tiếp, hiển thị lỗi và tổ chức dữ liệu.
backend-patterns
280kGiúp agent của bạn với các mẫu kiến trúc phía máy chủ và tối ưu cơ sở dữ liệu, hữu ích khi xây dựng hoặc rà soát code chạy trên máy chủ.