From 0418d7be7d7cae5991c0d622d65eff2eafb1129e Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Wed, 26 Jul 2023 10:37:37 +0200 Subject: [PATCH] Refactoring --- model-user.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/model-user.go b/model-user.go index e3aecb8..96a7fb7 100644 --- a/model-user.go +++ b/model-user.go @@ -118,8 +118,9 @@ func add(user User, config *ConfigFile, ldapConn *ldap.Conn) error { } // Send the email err = sendMail(SendMailTplData{ - From: "alice@resdigita.org", - To: user.OtherMailbox, + From: "alice@resdigita.org", + To: user.OtherMailbox, + RelTemplatePath: "user/mail.txt", ContentVars: map[string]string{ "InviteFrom": "alice@resdigita.org", "SebAddress": "https://www.gvoisins.org",