用 QQ邮箱 配置 Ghost 邮件服务
1、获取 QQ邮箱授权码
登录邮箱,依次点击 设置 > 账号 > POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV服务 > 开启服务(管理服务)> 生成授权码 > 微信扫码授权 > 获得授权码。
2、编辑 ghost 目录下的 config.production.json 文件
将 mail 节点更新为:
"mail": {
"transport": "SMTP",
"from": "<your-email-name>@qq.com",
"options": {
"service": "qq",
"host": "smtp.qq.com",
"port": 465,
"secure": true,
"auth": {
"user": "<your-email-name>@qq.com",
"pass": "<授权码>"
}
}
}
3、重启 ghost 服务。