跳到正文
Skillpedia
API 与服务器(后端)16k · #10839

debug-resend-delivery

它能做什么

这个技能追踪邮件从 Resend 发往收件人的途中在哪里停止了。适合邮件丢失、被退回或被投入垃圾邮件的人。

适用场景

  • ✓当有人说邮件从未收到,或被当作垃圾邮件的时候。
  • ✓当邮件被退回,你需要知道原因的时候。
  • ✓当你应用的邮件或 webhook 回调似乎失败的时候。

技能链接

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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ParadevAI/Paradev/blob/main/plugins/resend/skills/debug-resend-delivery/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“一位客户说他从未收到我们昨天通过 Resend 发送的欢迎邮件。请找出邮件在哪里停止了。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会在 Resend 中找到该邮件并读取其状态。根据状态的不同,它会检查 API 日志中失败的请求、抑制名单或发件域名,并且在原因明确之前不做任何改动。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Find where the email stopped

An email that "never arrived" stopped at one of four points: Resend never accepted the request, Resend did not send it, the receiving server rejected it, or it arrived and the user did not see it. Find the point before you change anything.

1. Find the email

Run list-emails and match the recipient, subject, and time. Then run get-email on the match.

If there is no match, the request did not succeed. Go to step 2.

2. No email: read the API log

Run list-logs and find requests to /emails near the time of the send. Run get-log on any request that did not return 2xx. The response body names the cause, for example a domain that is not verified, a field that is not valid, or a rate limit. Quote it to the user.

3. An email: read its status

The status in get-email tells you what to do next:

  • queued, scheduled: not sent yet. A scheduled email waits for its time.
  • sent: Resend accepted it, and the receiving server has not answered yet. Look again after a few minutes.
  • delivery_delayed: the receiving server is deferring it. Resend tries again. Do not send it again.
  • delivered, opened, clicked: it arrived. Tell the user to look in spam, promotions, and any mail filters, then go to step 5.
  • bounced: the receiving server rejected it. Go to step 4.
  • complained: the recipient marked it as spam.
  • suppressed: Resend did not send it, because the address is on the suppression list. Go to step 4.
  • failed, canceled: it was not sent. Read the details, and look for the request in step 2.

4. Bounces and suppressions

Run get-suppression with the address. The origin tells you why it is there: bounce (a hard bounce), complaint (a spam report), or manual. Resend does not send to a suppressed address again.

Remove an address only when the user asks, and only after they confirm that the cause is fixed. If an address bounced or complained and you send to it again, it hurts the sender reputation of the domain.

5. Spam placement and the domain

Run get-domain on the sending domain. A DNS record that is not verified (SPF, DKIM, or the MX record for the return path) is the usual cause of mail going to spam. Show the user each record and its status. For a pattern across many emails and not one, run get-email-metrics for the period, by domain.

6. The webhook did not report it

When the app missed the event and not the email, run list-webhooks, then list-webhook-events on the right webhook. An event with the status failed or attempting has its cause in list-webhook-event-attempts: the HTTP status and the body that the user's endpoint returned.

Anti-patterns

  • Sending again to see if it works. A bounce or a suppression gives the same result. A delay recovers on its own, and then the recipient gets it twice.
  • Removing a suppression to make the email go through. The suppression is what protects the domain.
  • Stopping at sent. It is not the end of the path. Look again.
常见问题

它会重新发送邮件吗?

不会。如果邮件只是延迟,技能会说明不要重发,因为 Resend 会自动重试。

如果邮件根本不在列表中怎么办?

那说明请求没有成功,技能会检查 API 日志中的错误响应。

已送达的邮件一定会进入收件箱吗?

不一定。如果邮件已送达但未被看到,技能会提示你检查垃圾邮件、推广邮件和邮件过滤规则。

详情

作者的原始描述

Find out why an email sent with Resend did not arrive — find the email, read its status, then check the API log, the suppression list, the sending domain, and the webhook that should have reported it. Use when the user says an email never arrived, went to spam, bounced, or that their app's sends or webhooks are failing.

repo: ParadevAI/Paradev

热度

GitHub 星标
16k
排名
#10839
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能