Chuyển đến nội dung
Skillpedia
API và máy chủ (backend)16k · #10840

send-with-resend

Skill này làm gì

Skill này gửi email qua Resend một cách cẩn thận, vì email đã gửi không thể thu hồi. Dành cho người gửi email giao dịch hoặc email hàng loạt từ một ứng dụng hay công cụ.

Khi nào nên dùng

  • ✓Khi bạn muốn gửi, lên lịch hoặc gửi hàng loạt một email qua Resend.
  • ✓Khi bạn muốn thử một mẫu email trước khi nó đến người thật.
  • ✓Khi bạn đang đưa tính năng gửi Resend vào một codebase.

Liên kết skill

https://github.com/ParadevAI/Paradev/blob/main/plugins/resend/skills/send-with-resend/SKILL.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/ParadevAI/Paradev/blob/main/plugins/resend/skills/send-with-resend/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Gửi thử bản email chào mừng của chúng tôi qua Resend, rồi chờ tôi đồng ý trước khi gửi cho danh sách người nhận thật.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent kiểm tra tên miền gửi đã được xác minh chưa, gửi tin nhắn đến các địa chỉ kiểm thử của Resend trước, rồi kiểm tra kết quả. Nó chỉ gửi đến người nhận thật sau khi bạn xác nhận.

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.

A sent email cannot be taken back

Every other Resend call can be run again. send-email and send-batch-emails put mail in someone's inbox, and nothing undoes that. Treat the send as the last step of a short checklist.

1. Check the sending domain

The from address must be on a domain the account has verified for sending. Run list-domains and find the domain of the from address:

  • verified: send.
  • pending, not_started, failed, or partly verified: do not send. Run get-domain and show the user the DNS records that are not verified yet.
  • Not in the list: the account cannot send from it. Ask which verified domain to use. Do not pick one for the user.

onboarding@resend.dev sends without a domain, but only to the account owner's own address. It is for a first test, not for real recipients.

2. Prove it on a test address first

Before a real recipient, send the same message to Resend's test addresses. Remove cc and bcc, and put only test addresses in to. A real address in any recipient field gets the test email before the user confirms in step 3.

  • delivered@resend.dev: delivered. Add a label for each case, for example delivered+welcome@resend.dev.
  • bounced@resend.dev: a hard bounce.
  • complained@resend.dev: delivered, then marked as spam.
  • suppressed@resend.dev: suppressed as an address that bounced before.

Then run get-email on the result. Its status is the truth: sent means Resend accepted the message, delivered means the receiving server accepted it.

3. Confirm before a real inbox

Show the user the from, to, cc, bcc, subject, and body, and wait for a clear yes. Get this confirmation every time. Approval for an earlier send does not cover this one.

  • Set an idempotencyKey (for example welcome/<user-id>), so a retry after a timeout cannot send the message twice.
  • To send later, set scheduledAt. cancel-email can stop a scheduled email until it is sent, and not after.
  • One message to many people who must not see each other is a batch (send-batch-emails, at most 100 per call), or a broadcast. It is not one email with a long to list.

4. Sending from code

When the user wants their application to send mail, read how the codebase already calls Resend and extend that path. The API key comes from the environment and never goes in the repo, a client bundle, or a log line. Send from the server only.

Anti-patterns

  • Testing on a real person. Use delivered@resend.dev until the message is right.
  • Reading sent as delivered. sent only means that Resend accepted it.
  • Retrying a send without an idempotency key. A timeout does not prove that the first send failed.
  • Changing the from domain so the send works. The user picks the sender, not the agent.
Câu hỏi thường gặp

Nó có thể gửi cho người thật mà không hỏi không?

Không. Nó dừng trước người nhận thật và hỏi bạn xác nhận trước.

Nếu tên miền gửi chưa được xác minh thì sao?

Nó sẽ không gửi, và hiển thị các bản ghi DNS còn cần thiết lập.

Các địa chỉ kiểm thử dùng để làm gì?

Chúng giúp bạn kiểm chứng tin nhắn hoạt động, kể cả cách một email được gửi, bị trả về hoặc bị khiếu nại, mà không đến hộp thư thật.

Chi tiết

Mô tả gốc của tác giả

Send email through Resend without surprising anyone — check the sending domain first, prove the message on Resend's test addresses, and get the user's confirmation before mail goes to a real inbox. Use when the user asks to send, schedule, or batch-send an email, test a template, or wire Resend sending into a codebase.

repo: ParadevAI/Paradev

Độ phổ biến

Sao GitHub
16k
Vị trí xếp hạng
#10840
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự