email-best-practices

bởi resend

Sử dụng khi xây dựng tính năng email, email bị đánh dấu spam, tỷ lệ bounce cao, thiết lập xác thực SPF/DKIM/DMARC, triển khai thu thập email, đảm bảo…

npx skills add https://github.com/resend/resend-skills --skill email-best-practices

Email Best Practices

Guidance for building deliverable, compliant, user-friendly emails.

Architecture Overview

[User] → [Email Form] → [Validation] → [Double Opt-In]
                                              ↓
                                    [Consent Recorded]
                                              ↓
[Suppression Check] ←──────────────[Ready to Send]
        ↓
[Idempotent Send + Retry] ──────→ [Email API]
                                       ↓
                              [Webhook Events]
                                       ↓
              ┌────────┬────────┬─────────────┐
              ↓        ↓        ↓             ↓
         Delivered  Bounced  Complained  Opened/Clicked
                       ↓        ↓
              [Suppression List Updated]
                       ↓
              [List Hygiene Jobs]

Quick Reference

Need to...See
Set up SPF/DKIM/DMARC, fix spam issuesDeliverability
Build password reset, OTP, confirmationsTransactional Emails
Plan which emails your app needsTransactional Email Catalog
Build newsletter signup, validate emailsEmail Capture
Send newsletters, promotionsMarketing Emails
Ensure CAN-SPAM/GDPR/CASL complianceCompliance
Decide transactional vs marketingEmail Types
Handle retries, idempotency, errorsSending Reliability
Process delivery events, set up webhooksWebhooks & Events
Manage bounces, complaints, suppressionList Management
Make emails accessible (screen readers, alt text, contrast)Accessibility

Start Here

New app? Start with the Catalog to plan which emails your app needs (password reset, verification, etc.), then set up Deliverability (DNS authentication) before sending your first email.

Spam issues? Check Deliverability first—authentication problems are the most common cause. Gmail/Yahoo reject unauthenticated emails.

Marketing emails? Follow this path: Email Capture (collect consent) → Compliance (legal requirements) → Marketing Emails (best practices).

Production-ready sending? Add reliability: Sending Reliability (retry + idempotency) → Webhooks & Events (track delivery) → List Management (handle bounces).

Accessibility? Most emails fail basic accessibility checks. See Accessibility for lang/dir, presentational tables, headings, alt text, <title>, and contrast.

Thêm skills từ resend

resend-inbound
resend
resend-inbound — một kỹ năng có thể cài đặt cho các tác nhân AI, được xuất bản bởi resend/resend-skills.
official
resend-design-skills
resend
Sử dụng khi cần tài nguyên thiết kế Resend. Dẫn đến hướng dẫn thương hiệu, nhận diện hình ảnh, thành phần giao diện, token thiết kế và mẫu trang tiếp thị.
official
email-best-practices
resend
Hướng dẫn toàn diện để xây dựng hệ thống email có khả năng gửi đến, tuân thủ quy định và thân thiện với người dùng. Bao gồm thiết lập xác thực (SPF/DKIM/DMARC), khắc phục sự cố spam và các phương pháp tốt nhất về khả năng gửi để ngăn email rơi vào thư mục spam. Cung cấp các mẫu và khuôn mẫu cho email giao dịch (đặt lại mật khẩu, OTP, xác nhận) và email tiếp thị với quy trình đồng ý phù hợp. Cung cấp khung tuân thủ cho các quy định CAN-SPAM, GDPR và CASL, cùng với cơ chế double opt-in và danh sách loại trừ...
official
email-best-practices
resend
Sử dụng khi xây dựng tính năng email, email bị đánh dấu spam, tỷ lệ bounce cao, thiết lập xác thực SPF/DKIM/DMARC, triển khai thu thập email, đảm bảo…
official
react-email
resend
Xây dựng và gửi email HTML bằng các component React với kiểu dáng an toàn cho client và kiểm tra xem trước. Phát triển email dựa trên component với hỗ trợ TypeScript, bao gồm các component bố cục cốt lõi (Html, Body, Container, Section, Row, Column) và các phần tử nội dung (Heading, Text, Button, Image, CodeBlock). Tạo kiểu Tailwind CSS thông qua component Tailwind với preset dựa trên pixel; bố cục dạng bảng cần thiết để tương thích với client email. Máy chủ xem trước cục bộ tại localhost:3000 với chỉnh sửa trực tiếp;...
official
resend-cli
resend
Trước khi chạy bất kỳ lệnh resend nào, hãy kiểm tra xem CLI đã được cài đặt chưa:
official
agent-email-inbox
resend
Sử dụng khi xây dựng bất kỳ hệ thống nào mà nội dung email kích hoạt các hành động — hộp thư đến AI agent, bộ xử lý hỗ trợ tự động, quy trình email thành tác vụ, hoặc bất kỳ quy trình làm việc nào…
official
react-email
resend
Sử dụng khi xây dựng các mẫu email HTML với các thành phần React, thêm trình chỉnh sửa email trực quan vào ứng dụng sử dụng trình chỉnh sửa trực quan React Email, kết xuất…
official