Enable mail template customization #2891

Closed
opened 2025-11-02 04:52:52 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @kolaente on GitHub (Feb 11, 2019).

It currently is not possible to customize email templates by using the customize system. I looked in the code, it seems like Gitea does not look for customized templates.

Relevant bit (among others): models/mail.go:167

Originally created by @kolaente on GitHub (Feb 11, 2019). It currently is not possible to customize email templates by using the [customize system](https://docs.gitea.io/en-us/customizing-gitea/). I looked in the code, it seems like Gitea does not look for customized templates. Relevant bit (among others): `models/mail.go:167`
GiteaMirror added the type/proposaltype/enhancement labels 2025-11-02 04:52:52 -06:00
Author
Owner

@FalconWu2017 commented on GitHub (May 10, 2019):

The current mail template is too low, and I would like to customize it too.

@FalconWu2017 commented on GitHub (May 10, 2019): The current mail template is too low, and I would like to customize it too.
Author
Owner

@zeripath commented on GitHub (May 10, 2019):

I think it actually does look for customisable templates.

@zeripath commented on GitHub (May 10, 2019): I think it actually does look for customisable templates.
Author
Owner

@lunny commented on GitHub (Jun 21, 2019):

I think @zeripath is right. I haven't test it, but see https://github.com/go-gitea/gitea/blob/master/modules/templates/static.go#L174 . Customize mail template should be OK.

@lunny commented on GitHub (Jun 21, 2019): I think @zeripath is right. I haven't test it, but see https://github.com/go-gitea/gitea/blob/master/modules/templates/static.go#L174 . Customize mail template should be OK.
Author
Owner

@small75 commented on GitHub (Jul 1, 2019):

the mechanism of customization works

@small75 commented on GitHub (Jul 1, 2019): the mechanism of customization works
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2891