如何在 Ghost CMS 中配置通过 Mailgun 发送邮件?
How to configure to send mail via Mailgun in Ghost CMS?
error: Failed to send email. Reason: Invalid login - 535 5.7.0 Mailgun is not loving your login or password.
我在 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": "myuser@mydomain.ghostzones.ml",
"pass": "passcode"
}
}
},
您需要访问 Mailgun 面板并为创建的新 SMTP 用户重置密码。
然后你可以在你的文件中这样设置:
"mail": {
"from": "'Mageflix' <postmaster@mail.mageflix.com>",
"transport": "SMTP",
"options": {
"service": "Mailgun",
"host": "smtp.mailgun.org",
"port": 465,
"secureConnection": true,
"auth": {
"user": "postmaster@mail.mageflix.com",
"pass": "4d595189e2b37b5c140c6979a9d8627d-46ac6b00-8a10f98c2b"
}
}
},
error: Failed to send email. Reason: Invalid login - 535 5.7.0 Mailgun is not loving your login or password.
我在 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": "myuser@mydomain.ghostzones.ml",
"pass": "passcode"
}
}
},
您需要访问 Mailgun 面板并为创建的新 SMTP 用户重置密码。
然后你可以在你的文件中这样设置:
"mail": {
"from": "'Mageflix' <postmaster@mail.mageflix.com>",
"transport": "SMTP",
"options": {
"service": "Mailgun",
"host": "smtp.mailgun.org",
"port": 465,
"secureConnection": true,
"auth": {
"user": "postmaster@mail.mageflix.com",
"pass": "4d595189e2b37b5c140c6979a9d8627d-46ac6b00-8a10f98c2b"
}
}
},