Skip to content

关于本页

本页介绍更夫所基于的开源内核 Keep 的通用能力。更夫在其上提供国内化增强:钉钉/企业微信/飞书通知、国产大模型接入、LDAP 认证与值班管理。部署与上手请看快速上手。

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 并发送电子邮件,请按照以下步骤操作:

  1. 获取 Resend API 密钥:如果您还没有密钥,请访问 Resend API Keys 获取 API 密钥。
  2. 使用获得的 API 密钥在您的系统中配置 Resend provider。
  3. 使用以下 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>"

相关链接 ​

基于 MIT 协议开源的 Keep · 由更夫社区维护