walinejs / waline

💬 A Simple, Safe Comment System
https://waline.js.org/en/
GNU General Public License v2.0
2.19k stars 379 forks source link

Cloudflare邮件支持 || Cloudflare email support #2109

Open lolifamily opened 11 months ago

lolifamily commented 11 months ago

功能概述 | Describe the feature

cloudflare已经推出免费的email worker服务,可以近乎无限量发送邮件,但是其使用http而不是smtp,希望能支持一下


Feature Overview | Describe the feature

Cloudflare has launched a free email worker service, which can send almost unlimited emails, but it uses http instead of smtp. I hope it can be supported

lizheming commented 11 months ago

这个看起来可以直接通过 WEBHOOK 去支持,具体可参考文档 https://waline.js.org/reference/server/env.html#%E9%AB%98%E7%BA%A7%E9%85%8D%E7%BD%AE

本质是发送一个请求,在 cloudflare 那边拿到输出发送邮件,和 waline 本身关系不是特别大。

lolifamily commented 10 months ago

这里不能解决注册验证码发送的问题


The problem of sending registration verification code cannot be solved here

wuyilingwei commented 7 months ago

有进一步的进展吗,我查到了一些cloudflare workers发送邮件的办法。(我对电子邮件真的不咋清楚) 一个第三方教程 https://www.fadhil-blog.dev/blog/cloudflare-worker-send-email/ cloudflare博客 https://blog.cloudflare.com/sending-email-from-workers-with-mailchannels 但是我真的对这个不太清楚,第一个教程里的东西是写死在workers里面的,有什么办法可以把第一个和Waline结合起来吗?

lolifamily commented 5 months ago

有进一步的进展吗,我查到了一些cloudflare workers发送邮件的办法。(我对电子邮件真的不咋清楚) 一个第三方教程 https://www.fadhil-blog.dev/blog/cloudflare-worker-send-email/ cloudflare博客 https://blog.cloudflare.com/sending-email-from-workers-with-mailchannels 但是我真的对这个不太清楚,第一个教程里的东西是写死在workers里面的,有什么办法可以把第一个和Waline结合起来吗?

这个workers是可以直接访问的,相当于可以造一个api然后发送邮件,反正我是这么理解的

Raincarnator commented 1 month ago

你好,我这里有一种 Gmail 套 Cloudflare 邮箱的做法,不知道能否参考。 https://blog.reincarnatey.net/2024/0719-better-waline/#%E9%85%8D%E7%BD%AE%E9%82%AE%E4%BB%B6%E6%8F%90%E9%86%92


Hello, I have a way to set up Gmail with Cloudflare mailbox. I don’t know if I can refer to it. https://blog.reincarnatey.net/2024/0719-better-waline/#%E9%85%8D%E7%BD%AE%E9%82%AE%E4%BB%B6%E6%8F%90% E9%86%92