diff --git a/emailApi/main.go b/emailApi/main.go index 6f4466b..f9da1d0 100644 --- a/emailApi/main.go +++ b/emailApi/main.go @@ -9,7 +9,6 @@ import ( "github.com/pocketbase/pocketbase/models" "github.com/pocketbase/pocketbase/tools/mailer" "github.com/pocketbase/pocketbase/tools/template" - htemplate "html/template" "net/mail" ) @@ -37,7 +36,7 @@ func sendEmailToUser(app *pocketbase.PocketBase, registry *template.Registry, re "SENDER_SN": sender.GetString("sn"), "SENDER_GIVENNAME": sender.GetString("givenName"), "SENDER_EMAIL": senderEmail, - "CONTENT": htemplate.HTML(safeContent), + "CONTENT": safeContent, }) if err != nil { currentErrors := emailRecord.GetString("errors") diff --git a/html/blankEmail.html b/html/blankEmail.html index d98c02b..c41955c 100644 --- a/html/blankEmail.html +++ b/html/blankEmail.html @@ -51,7 +51,7 @@
Du hast eine E-Mail von {{.SENDER_GIVENNAME}} {{.SENDER_SN}} ({{.SENDER_EMAIL}})
Du kannst {{.SENDER_GIVENNAME}} {{.SENDER_SN}} antworten, indem du auf den untenstehenden Button klickst.