Fixed no root path for templates and static assets (#12)
This commit is contained in:
parent
c51ca4dd26
commit
4f8a0f8739
5 changed files with 14 additions and 2 deletions
|
|
@ -69,7 +69,7 @@ func SendMailWithTemplate(to, subject, tpl string, data map[string]interface{})
|
|||
var plainContent bytes.Buffer
|
||||
|
||||
t := &Template{
|
||||
Templates: template.Must(template.ParseGlob("templates/mail/*.tmpl")),
|
||||
Templates: template.Must(template.ParseGlob(viper.GetString("service.rootpath") + "/templates/mail/*.tmpl")),
|
||||
}
|
||||
|
||||
boundary := "np" + utils.MakeRandomString(13)
|
||||
|
|
|
|||
Reference in a new issue