Add: Template Config options & comments;

This commit is contained in:
$(pass /github/name)
2024-07-18 12:25:51 +02:00
parent f4a9166bee
commit 602ac0fef0
5 changed files with 46 additions and 42 deletions

View File

@@ -37,7 +37,7 @@ func (s *EmailService) SendEmail(to string, subject string, body string) error {
func ParseTemplate(filename string, data interface{}) (string, error) {
// Read the email template file
templateDir := config.Templates.MailDir
templateDir := config.Templates.MailPath
tpl, err := template.ParseFiles(templateDir + "/" + filename)
if err != nil {
logger.Error.Printf("Failed to parse email template: %v", err)