Qihaolou (@QiHao7) 在 求助:Dreamhunter大佬的cloudflare临时邮箱怎么通过 HTTP API 发送邮件? 中发帖
官网的API文档在上面,我参考着让AI写了两个不同的版本,都报错:Status Code: 401
Response: Invalid address credential
我已经核对过变量,包括我的管理员密码,后端地址,JWT,但是依旧不能发送,请问有佬知道应该怎么改吗?
import requests
send_body = {
"from_name": "abc@xxx",
"to_name": "Test",
"to_mail": "walmartshop@outlook.com",
"subject": "Test Email",
"is_html": False, # 根据内容设置是否为 HTML
"content": "Hello World, this is a test email.",
}
res = re...