Resend Provider
ResendProvider 是一个实现 Resend API 的类,允许通过 Keep 发送电子邮件。
认证
此提供商需要身份验证。
- api_key: Resend API 密钥(必需:True,敏感:True)
在工作流中
此提供商可用于工作流。
作为"操作"来进行更改或更新数据,示例:
yaml
actions:
- name: Query resend
provider: resend
config: "{{ provider.my_provider_name }}"
with:
_from: {value} # 发件人电子邮件地址
to: {value} # 收件人电子邮件地址
subject: {value} # 电子邮件主题
html: {value} # 电子邮件正文请查看以下工作流示例:
连接 Provider
要通过 Keep 连接 Resend provider 并发送电子邮件,请按照以下步骤操作:
- 获取 Resend API 密钥:如果您还没有密钥,请访问 Resend API Keys 获取 API 密钥。
- 使用获得的 API 密钥在您的系统中配置 Resend provider。
- 使用以下 YAML 示例使用 Resend provider 发送电子邮件通知:
yaml
# Send an email notification using the Resend provider.
alert:
id: email-notification
description: Send an email notification using Resend
actions:
- name: send-email
provider:
type: resend
config: "{{ providers.resend-provider }}"
with:
_from: "sender@example.com"
to: "recipient@example.com"
subject: "Hello from Resend Provider"
html: "<p>This is the email body.</p>"