email-best-practices

作者: resend

在构建邮件功能、处理邮件进入垃圾箱、高退信率、设置SPF/DKIM/DMARC认证、实现邮件捕获、确保…时使用

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.

来自 resend 的更多技能

design-audit
resend
审计Resend仪表盘的设计系统一致性。当用户说“审计设计”、“设计对齐”、“仪表盘设计审计”、询问关于……时,路由至此。
official
marketing-pages
resend
在 Resend 代码库中创建、更新、编辑或删除营销/公开页面时使用。涵盖页面结构、组件复用规则以及……
official
send-email
resend
通过Resend API的单次或批量端点发送事务性邮件和批量邮件。单次端点适用于带附件或定时发送的单独邮件;批量端点可在一次请求中发送2–100封不同邮件,以减少API调用。使用幂等键(格式为<事件类型>/<实体ID>)防止重试时重复发送,有效期24小时。仅对429(速率限制)和500(服务器错误)响应采用指数退避重试;修复400/422验证错误时不重试...
official
templates
resend
在通过API创建、更新、发布、删除或列出Resend电子邮件模板时使用,或用于定义模板变量、理解草稿与…的区别。
official
design-audit
resend
审计 Resend 仪表盘的设计系统一致性。当用户说"审计设计"、"设计一致性"、"仪表盘设计审计"、询问关于……时,路由到此。
official
marketing-pages
resend
在Resend代码库中创建、更新、编辑或删除营销/公开页面时使用。涵盖页面结构、组件复用规则以及……
official
resend-design-skills
resend
当需要Resend设计资源时使用。可获取品牌指南、视觉识别、UI组件、设计令牌及营销页面模式。
official
resend-design-system
resend
在 Resend 代码库中构建或修改 UI 时使用。提供所有 src/ui/… 的组件 API、变体选项、设计令牌和组合模式。
official