Meteor 重置密码不会向用户发送电子邮件以重置密码

Meteor reset password does not send email to user for password reset

Meteor 重置密码不会向用户发送密码重置电子邮件。

没有任何错误。

在 telescope 应用程序中,点击 "Email Reset Link" 按钮后显示 "Email sent",但是用户没有收到密码重置电子邮件。

问题已部分解决。因为,在 MAIL_URL 安装 (+Mailgun) 之后它仍然不起作用。该问题可能与 nitrous.io 有关,因为 nitrous.io 邮箱不支持 SMTP。

有人在 nitrous.io 上安装了 meteor 应用程序并有邮件通知吗? 一些 nitrous.io 开发人员可以提出建议吗?

您需要设置SMTP服务(Meteor自己的主机使用Mailgun, but others are available), and set the environment variable MAIL_URL to match the details of your service, as documented here

最好在 Meteor 启动之前在 Nitrious.io 环境中执行此操作,但如果需要,您可以在启动时执行此操作,因为我认为不会立即需要它:

process.env.MAIL_URL = 'smtp://USERNAME:PASSWORD@smtp.mailgun.org:587'; // (or equivalent for another provider)