使用SendGrid发送注册邮件

使用SendGrid发送注册邮件
Email Newsletters — Ghost Developer Docs
Sites using the Members feature benefit from built-in email newsletters, where all posts can be delivered directly to segments of your audience in just a few clicks.

之前对邮件这个东西不感兴趣,不过我也想试试万一,有朋友想注册我的网站呢,不试不知道,原来我的这个网站一直都无法注册。既然Ghost都做了这么好的一个系统,还是有必要把这个邮件系统整起,至少要能正常注册吧。

去看了官方默认的邮件管理工具:Mailgun,这家伙,真的是,必须信用卡才能注册,那就找找替代方案吧。

7 Best Mailgun Alternatives For Transactional Emails (2023)
Looking for an email API service to send transactional emails? Here are seven Mailgun alternatives with easy SMTP integration.
Is there a cheaper option for email than the Mailgun intergration?
Hi, I am currently paying Mailgun $35 a month for the Foundation tier. It includes 50,000 emails per month, but my total email count this month is 50. I can not see that going above 1000 emails in the long term unless my site suddenly gets super popular. That 50 email count includes transactional and newsletter emails. I tried to downgrade my Mailgun account, but it is not showing anything lower than the Foundation tier at $35 per month, which I am currently on. At this rate, I might as we…

方案很多,随便选一个就行了。对了,有网友推荐这个SendGrid,看起来还不错,去搜一下教程。

Configure SMTP For Outbound Emails (Ghost SMTP Setup)
Email configuration for your ghost publication. There are two type of setup needed for ghost emails. For transactional emails & for Newsletter emails.
Setting up Sendgrid with Ghost and DigitialOcean
Set up the Sendgrid for sending email on Droplet hosted on DigitalOcean.

1.注册

2.Authenticate your sending domain

选择yes就可以填写自己的域名作为发送者。

按照步骤,填写好你的发送域名,这个默认你的域名就可以了。然后就是DNS验证,把Recors在解析服务器上面配置好即可。

3.Integrate using our Web API or SMTP Relay

这个选择SMTP Relay:

生成密钥:

然后编辑Ghost配置文件,如果是Docker托管,就修改环境变量,把上面的参数复制过去就可以了。我是在pikapods上面托管的,在下面的这个位置,复制过去就可以了。

然后验证成功,可以发送邮件了。

4.Activity Feed

在数据面板查看行为记录和数据统计

SendGrid
Delivering your transactional and marketing email through one reliable platform.

注意:这配置好以后可实现用户注册功能。不能实现mailgun的群发newsletter功能。

Delivering bulk email newsletters can’t be done with basic SMTP. A bulk mail provider is a requirement to reliably deliver bulk mail. At present, Mailgun is the only supported bulk email provider. Mailgun is free for up to 600 emails per month, and has very reasonable pricing beyond that.

Why do I have to set up Mailgun for newsletters?
Sending bulk email to many recipients using SMTP is not supported. In order to send newsletters from Ghost you’ll need to setup Bulk Mail with Mailgun.

就目前的实际情况,要使用mailgun存在很多问题,首先就是mailgun的滥用,导致正常注册都是十分困难的(我的手机号就无法接收验证码),即使是注册成功,你不添加信用卡也不能自定义域名,很容易被和谐,进入垃圾邮件。需要了,以后再说吧

mailgun 邮件服务注册激活与使用 - Guozhang Wu’s Blog - 吴国章的博客
在阅读 laravel 文档的时候,发现邮件发送模块的多个 driver 中, mailgun 是排第一的,好奇心作祟,决定尝试使用一下。注册、激活邮箱注册,邮箱激活,基本操作不再赘述。邮箱激活…

阅读更多

更好的字幕翻译工具

更好的字幕翻译工具

如果你还在找一个更好的字幕翻译工具,那么就是是“沉浸式翻译”这个浏览器插件把,免费版本可以使用微软翻译、硅基流动翻译、GlM-4 Flash和Babel lite。 我测试了一下《挽救计划》的英文字幕,翻译成中文。这部电影的字幕其实难度还是挺大的,不过就我测试了硅基流动翻译、GlM-4 Flash和Babel lite 3个模型的翻译效果,这里推荐Babel lite模型。原因如下: 字幕里面有一个断句的 文本,Babel lite能准确翻译出原文表达的意思: 00:09:4900:09:52Over the next 30 years, the Earth could在未来 30 年,地球可能会 00:09:5200:09:55cool maybe 10凉爽,也许 10

By typenode
给网站添加view-transition动画

给网站添加view-transition动画

view-transition是一个很专业的功能,可以通过CSS去实现网页动画,在跨网页浏览上启用view-transition,无需多余配置即可获得一个优雅的网站页面切换效果。 适用于多页面应用的跨文档视图过渡 | View Transitions | Chrome for Developers开始在您的多页应用 (MPA) 中使用跨文档视图过渡。Chrome for DevelopersX demo: HomecamelCase 配置 在Code injection里面添加如下代码即可: <style> @view-transition { navigation: auto; } ::view-transition-group(root){ animation-duration:600ms } </style>

By typenode
Fix ActivityPub Webhook Error

Fix ActivityPub Webhook Error

之前的Ghost托管在PikaPods上面,其实相当于是Managed Ghost,所以你不需要去操心服务器的配置。最近换了服务商,那么情况就不一样了,遇到的所有问题都需要自己去处理,其中一个就是ActivityPub无法正常使用。 错误排查 查看log后发现报错:No Webhook Secret Found。 原因分析 * /.ghost/activitypub/* * /.well-known/webfinger * /.well-known/nodeinfo 上面三个ActivityPub资源配置错误,并未通过https反对带至ap.ghost.org。 处理办法 将需要反代的路径添加至nginx配置文件即可: location ~ /.ghost/activitypub/* { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_se

By typenode
DNSRelay,支持H3、DoQ、DNSSEC、ECS和拦截规则的安卓客户端

DNSRelay,支持H3、DoQ、DNSSEC、ECS和拦截规则的安卓客户端

最近1年时间都是用Null Private的DNS服务,在安卓手机上可以直接使用DoT,不需要第三方客户端,但是有时候感觉还是不方便,不过最近Adguard客户端有很多问题,经常后台退出,或者过度拦截。于是去商店找了几款DNS客户端体验,而目前支持H3的DNS客户端数量非常少,其中DNSRelay的体验还真的不错。这是2025年11月发上架的新APP,参考下载地址: https://apkcombo.com/tw/dnsrelay-secure-dns-proxy/com.sonlabs.dnsrelay/ 官方介绍: 功能 1.隐私 这款DNS客户端首要优势就是支持主流的DNS协议,包括DNS-over-HTTPS (DoH)、DNS-over-TLS (DoT)、DNS-over-QUIC (DoQ) 以及 HTTP/3。那么阿里云的H3 DNS就可以派上用场了,还有易安云的DoQ以及Null Private的H3都能用上了。而像HTTP/3这种集大成的DNS协议,是目前你能用到的最好的协议。 阿里云:h3://dns.alidns.com/dns

By typenode