Featured image of post 使用Resend API发送电子邮件

使用Resend API发送电子邮件

Send Email

使用Resend API发送电子邮件。

官方原文

https://resend.com/emails

Python

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
import resend

resend.api_key = "re_xxxxxxxxx"

params: resend.Emails.SendParams = {
  "from": "Acme <onboarding@resend.dev>",
  "to": ["delivered@resend.dev"],
  "subject": "hello world",
  "html": "<p>it works!</p>"
}

email = resend.Emails.send(params)
print(email)
comments powered by Disqus
使用 Hugo 构建
主题 StackJimmy 设计