使用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 是排第一的,好奇心作祟,决定尝试使用一下。注册、激活邮箱注册,邮箱激活,基本操作不再赘述。邮箱激活…

Subscribe to Typenode

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
[email protected]
Subscribe