feat(emailApi): changed how the raw html is embedded
Build and Push Docker image / build-and-push (push) Successful in 3m49s
Details
Build and Push Docker image / build-and-push (push) Successful in 3m49s
Details
This commit is contained in:
parent
8c5dd4e93b
commit
98c55bc5ae
|
@ -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")
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
<p>Du hast eine E-Mail von {{.SENDER_GIVENNAME}} {{.SENDER_SN}} ({{.SENDER_EMAIL}})</p>
|
||||
</div>
|
||||
<div class="container">
|
||||
{{.CONTENT}}
|
||||
{{.CONTENT|raw}}
|
||||
</div>
|
||||
<div class="container">
|
||||
<p>Du kannst {{.SENDER_GIVENNAME}} {{.SENDER_SN}} antworten, indem du auf den untenstehenden Button klickst.</p>
|
||||
|
|
Loading…
Reference in New Issue