【问题标题】:How to customize supabase (selfhosted on docker) email?如何自定义 supabase(在 docker 上自托管)电子邮件?
【发布时间】:2023-02-20 23:23:48
【问题描述】:

您好,我无法更改从 supabase 发送的电子邮件模板,我已经尝试了所有方法。 它工作得很好,但我希望能够自定义它。

非自托管解决方案(如here 所描述的不同)

email screen

有没有办法编辑此电子邮件模板?

我一般搜索文档,谷歌搜索并在 github 上寻找解决方案。我想要一个关于如何设置它的解决方案,目前我还没有得到结果。

【问题讨论】:

    标签: docker supabase


    【解决方案1】:

    有一个 - 通过 env 配置 GoTrue(在阅读documentation>e-mail 之后):

    这是来自self-hosting tutorial 的示例:

    # Email templates
    # Invite user - provide a URL to a HTML or Text template
    GOTRUE_MAILER_TEMPLATES_INVITE=https://example.com/path/to/your/invite/template.html
    
    # Confirm registration - provide a URL to a HTML or Text template
    GOTRUE_MAILER_TEMPLATES_CONFIRMATION=https://example.com/path/to/your/confirmation/template.html
    
    # Password recovery - provide a URL to a HTML or Text template
    GOTRUE_MAILER_TEMPLATES_RECOVERY=https://example.com/path/to/your/password_reset/template.HTML
    
    # Magic link - provide a URL to a HTML or Text template
    GOTRUE_MAILER_TEMPLATES_MAGIC_LINK=https://example.com/path/to/your/magic_link/template.html
    

    【讨论】:

      猜你喜欢
      • 2020-03-15
      • 2013-07-26
      • 2018-05-20
      • 2013-06-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-08
      • 2016-09-10
      相关资源
      最近更新 更多