Misc cleanup.

This commit is contained in:
mikestefanello 2021-12-22 19:18:33 -05:00
parent 00515185cd
commit 3b41e1dfd8
4 changed files with 58 additions and 24 deletions

View file

@ -16,6 +16,7 @@ type MailClient struct {
// config stores application configuration
config *config.Config
// templates stores the template renderer
templates *TemplateRenderer
}
@ -51,7 +52,7 @@ func (c *MailClient) SendTemplate(ctx echo.Context, to, template string, data in
"mail",
template,
template,
[]string{fmt.Sprintf("email/%s", template)},
[]string{fmt.Sprintf("emails/%s", template)},
[]string{},
data,
)