【问题标题】:Meteor - Accounts.forgotPassword triggers internal server error whil Email.send is working fineMeteor - Accounts.forgotPassword 在 Email.send 工作正常时触发内部服务器错误
【发布时间】:2022-01-08 00:35:14
【问题描述】:

我在使用 Accounts.forgotPassword 方法的 Meteor 上遇到问题。 我的电子邮件 smtp 设置得很好,因为一旦部署了应用程序,我就可以毫无问题地使用 Email.send()。

但奇怪的是,accounts.forgotPassword 返回一个内部错误。 查看日志时出现此错误:

调用方法“forgotPassword”时出现异常错误:邮件命令失败:550-未采取请求的操作:邮箱不可用

我真的不明白为什么 Accounts.forgotPassword 会出现邮箱不可用错误,而 Email.send() 不会出现邮箱不可用错误

有人遇到过这种问题吗? 我已经在网上搜索了任何线索,但没有找到任何线索:(

仅供参考,我使用 ionos smtp

【问题讨论】:

  • 您好,能否请您添加您使用的 Meteor 版本和 Accounts 包版本?

标签: meteor meteor-accounts


【解决方案1】:

由于Email.send 工作正常,我假设您的 MAIL_URL 设置正确,但您的 Accounts.emailTemplates 不正确。来自https://docs.meteor.com/api/passwords.html

除了配置电子邮件包的 MAIL_URL 之外,您还必须在 Accounts.emailTemplates 中设置正确的值(特别是发件人地址),以确保正确发送电子邮件!

【讨论】:

  • 嗨克里斯蒂安啊我没看到这个我今晚会检查并回复你确认谢谢你的线索!
  • 您好,您是对的,我没有在文档上看到此警告消息,现在我确实收到了重置电子邮件。非常感谢 :)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-09-20
  • 1970-01-01
  • 2018-10-22
相关资源
最近更新 更多