【发布时间】:2023-02-20 23:23:48
【问题描述】:
您好,我无法更改从 supabase 发送的电子邮件模板,我已经尝试了所有方法。 它工作得很好,但我希望能够自定义它。
非自托管解决方案(如here 所描述的不同)
有没有办法编辑此电子邮件模板?
我一般搜索文档,谷歌搜索并在 github 上寻找解决方案。我想要一个关于如何设置它的解决方案,目前我还没有得到结果。
【问题讨论】:
您好,我无法更改从 supabase 发送的电子邮件模板,我已经尝试了所有方法。 它工作得很好,但我希望能够自定义它。
非自托管解决方案(如here 所描述的不同)
有没有办法编辑此电子邮件模板?
我一般搜索文档,谷歌搜索并在 github 上寻找解决方案。我想要一个关于如何设置它的解决方案,目前我还没有得到结果。
【问题讨论】:
有一个 - 通过 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
【讨论】: