【问题标题】:Unable to send email from Ghost无法从 Ghost 发送电子邮件
【发布时间】:2015-03-24 08:32:41
【问题描述】:

我已经为此苦苦挣扎了好几天。我在极端情况下被激怒了。

我在 umquhile.org/kelpie 有一个托管的 Ghost 博客。它一直运行良好。不知何故,我将自己锁定在我的帐户之外。 75,000 个帖子说我需要设置电子邮件,这样我才能点击“忘记密码”。我已经浏览了 12,000 个帖子(好吧,有点夸张),展示了如何做到这一点。首先,Ghost 的教程平面不起作用。我已经尝试过香草 sendmail(预计不起作用)、MailgunSendgridGmail。我已经反复检查了我的配置。

根据我的设置方式,我会收到不同的错误消息。有时我收到 535 - 无效的登录凭据,有时所有收件人都被拒绝;现在我得到“无法读取未定义的属性'计数'”,无论那个是什么。谁能告诉我这个配置是否有问题。或者如何让电子邮件在 Ghost 中工作。

我应该注意,我每次进行更改时都重新启动了 node.js。

config = {
// ### Production
// When running Ghost in the wild, use the production environment
// Configure your URL and mail settings here
production: {
    url: 'http://umquhile.org/kelpie',
    mail: {
        service: 'Gmail',
        fromaddress: ‘xxxx@gmail.com',
        transport: 'SMTP',
        options: {
            host: 'smtp.gmail.com',
            secureConnection: true,
            port: 465,
            auth:  {
                user: ‘xxxx@gmail.com',
                pass: ‘xxxxxxxxxxxxxx’
            }
        }
    },

值得一提的是,我读到 Ghost 使用 Bcrypt 哈希作为密码。我使用在线 Bcrypt 生成器对我提供的密码进行哈希处理。我复制了字符串并将其粘贴到 Mysql 中我的管理员用户的密码字段中。那没用,因为我的帐户一直处于锁定状态。

【问题讨论】:

    标签: node.js email forgot-password


    【解决方案1】:

    我一发到 stackoverflow 上,我就被它击中了!!

    我通过 phpmyadmin 进入数据库,找到了字段 status

    它被设置为锁定

    我清理了场地,保存了更改,然后tadaaa!我现在可以再次访问我的博客了。抱歉发帖骚扰!我刚刚想到了答案。

    【讨论】:

      猜你喜欢
      • 2012-03-08
      • 2012-09-20
      • 2016-04-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-22
      • 2011-02-18
      相关资源
      最近更新 更多