【问题标题】:How can I configure the smtp port used by Accounts.ui in Meteor如何在 Meteor 中配置 Accounts.ui 使用的 smtp 端口
【发布时间】:2016-10-06 11:27:07
【问题描述】:

我无法在开发中发送电子邮件,因为 cloud9 阻止了正常的 smtp 端口。我可以在 Meteor 中配置 Accounts.ui 以使用 mailgun 的特殊 smtp 端口吗?

【问题讨论】:

    标签: meteor smtp cloud9-ide meteor-accounts


    【解决方案1】:

    通过这样的环境变量完成

    MAIL_URL = "smtp://user%40gmail.com:password@smtp.googlemail.com:465"
    

    第一个 @ 必须写为 %40 - 与解析 url 的方式有关

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-06-28
      • 2021-01-18
      • 1970-01-01
      • 1970-01-01
      • 2019-09-16
      • 1970-01-01
      • 2013-10-27
      相关资源
      最近更新 更多