Files
sim/apps/docs/content/docs/zh/tools/resend.mdx
Waleed 9a6a6fdacb improvement(docs): updated with new ss, docs script updated to copy items from main app into docs for tools (#1918)
* improvement(docs): updated script to copy over icons, cleanup unnecessary pages

* updated script with auto-icon generation

* ignore translations, only icons changed

* updated images

* updated i18n.lock

* updated images
2025-11-12 01:15:23 -08:00

61 lines
2.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Resend
description: 使用 Resend 发送电子邮件。
---
import { BlockInfoCard } from "@/components/ui/block-info-card"
<BlockInfoCard
type="resend"
color="#181C1E"
/>
{/* MANUAL-CONTENT-START:intro */}
[Resend](https://resend.com/) 是一项现代化的电子邮件服务,专为开发者设计,能够轻松发送事务性和营销电子邮件。它提供了一个简单可靠的 API 和仪表板,用于管理电子邮件的发送、模板和分析,使其成为在应用程序和工作流中集成电子邮件功能的热门选择。
使用 Resend您可以
- **发送事务性电子邮件**:以高送达率发送密码重置、通知、确认等邮件
- **管理模板**:创建和更新电子邮件模板,确保品牌和信息的一致性
- **跟踪分析**:监控送达率、打开率和点击率,以优化电子邮件表现
- **轻松集成**:使用简单的 API 和 SDK与您的应用程序无缝集成
- **确保安全性**:通过强大的身份验证和域名验证保护您的电子邮件声誉
在 Sim 中Resend 集成允许您的代理以编程方式发送电子邮件,作为自动化工作流的一部分。这支持诸如直接从 Sim 驱动的代理发送通知、警报或自定义消息等用例。通过将 Sim 与 Resend 连接,您可以自动化通信任务,确保及时可靠的电子邮件发送,无需人工干预。该集成利用您的 Resend API 密钥,在启用强大电子邮件自动化场景的同时,确保您的凭据安全。
{/* MANUAL-CONTENT-END */}
## 使用说明
将 Resend 集成到工作流程中。可以发送电子邮件。需要 API 密钥。
## 工具
### `resend_send`
使用您自己的 Resend API 密钥和发件地址发送电子邮件
#### 输入
| 参数 | 类型 | 必需 | 描述 |
| --------- | ---- | -------- | ----------- |
| `fromAddress` | 字符串 | 是 | 发件人电子邮件地址 |
| `to` | 字符串 | 是 | 收件人电子邮件地址 |
| `subject` | 字符串 | 是 | 电子邮件主题 |
| `body` | 字符串 | 是 | 电子邮件正文内容 |
| `contentType` | 字符串 | 否 | 电子邮件正文的内容类型(文本或 HTML |
| `resendApiKey` | 字符串 | 是 | 用于发送电子邮件的 Resend API 密钥 |
#### 输出
| 参数 | 类型 | 描述 |
| --------- | ---- | ----------- |
| `success` | 布尔值 | 邮件是否成功发送 |
| `to` | 字符串 | 收件人电子邮件地址 |
| `subject` | 字符串 | 电子邮件主题 |
| `body` | 字符串 | 电子邮件正文内容 |
## 注意事项
- 类别:`tools`
- 类型:`resend`