【问题标题】:How to change the domain in meteor email template?如何更改流星电子邮件模板中的域?
【发布时间】:2016-09-06 04:07:55
【问题描述】:

我想在从 Meteor 验证/重置/注册过程发送的电子邮件模板中将域名从“localhost”更改为“www.someotherdomain.com”。它应该只是一个全局变量设置,但我找不到它。任何提示将不胜感激。

改变:

http://localhost:3000/reset-password/abcdefghijklmnoprqstuvwxyz

到:

http://www.someotherdomain.com/reset-password/abcdefghijklmnoprqstuvwxyz

谢谢,

更新:在下面的链接中找到答案。

Meteor - What is the purpose of "ROOT_URL" and to what should it be defined?

【问题讨论】:

    标签: email meteor


    【解决方案1】:

    您可以使用Meteor.absoluteUrl() 进行设置。例如:

    Meteor.absoluteUrl("http://www.someotherdomain.com");
    

    或者,用环境变量ROOT_URL设置它

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-06-19
      • 2019-12-03
      • 1970-01-01
      • 2020-03-09
      • 2023-01-12
      • 2014-07-30
      • 2019-06-02
      相关资源
      最近更新 更多