fix
This commit is contained in:
parent
67bd956b6e
commit
5671ada373
|
@ -1,9 +1,5 @@
|
|||
Subject: Please confirm your {{ .CompanyName }} account
|
||||
|
||||
MIME-version: 1.0;
|
||||
Content-Type: text/html;
|
||||
charset=\"UTF-8\";
|
||||
|
||||
Dear {{ .UserName }},
|
||||
|
||||
Thank you for registering an account with {{ .CompanyName }}. We are thrilled to have you join our community!
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
Subject: Password Reset Request for Your {{ .CompanyName }} Account
|
||||
|
||||
MIME-version: 1.0;
|
||||
Content-Type: text/html;
|
||||
charset=\"UTF-8\";
|
||||
|
||||
Dear {{ .UserName }},
|
||||
|
||||
We have received your request to reset the password for your {{ .CompanyName }} account.
|
||||
|
|
|
@ -222,7 +222,7 @@ func RenderEmailTemplate(templateName, companyName, confirmationLink, senderName
|
|||
}
|
||||
|
||||
var result bytes.Buffer
|
||||
// result.Write([]byte("MIME-version: 1.0;\nContent-Type: text/html; charset=\"UTF-8\";\n\n"))
|
||||
result.Write([]byte("MIME-version: 1.0;\nContent-Type: text/html; charset=\"UTF-8\";\n\n"))
|
||||
err := tpls.ExecuteTemplate(&result, templateName, data)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
|
|
Loading…
Reference in New Issue
Block a user