如何在Ghost CMS中配置为通过Mailgun发送邮件?

问题描述 投票:2回答:1

错误:发送电子邮件失败。原因:无效的登录-535 5.7.0 Mailgun不喜欢您的登录名或密码。

我正在config.production.js文件中使用以下设置:


  "mail": {
    "from": " 'xyz' xyz.xyz.com",
    "transport": "SMTP",
    "options": {
      "service": "Mailgun",
      "host": "smtp.eu.mailgun.org",
      "port": 465,
      "secureConnection": true,
      "auth": {
        "user": "[email protected]",
        "pass": "passcode"
      }
    }
  },
json api mailgun ghost-blog
1个回答
0
投票

您需要访问Mailgun面板并为创建的新SMTP用户重置密码。

Ghost CMS Mailgun SMTP

然后您可以像这样在文件中进行设置:

"mail": {
      "from": "'Mageflix' <[email protected]>",
      "transport": "SMTP",
      "options": {
        "service": "Mailgun",
        "host": "smtp.mailgun.org",
        "port": 465,
        "secureConnection": true,
        "auth": {
          "user": "[email protected]",
          "pass": "4d595189e2b37b5c140c6979a9d8627d-46ac6b00-8a10f98c2b"
        }
      }
    },
© www.soinside.com 2019 - 2024. All rights reserved.