diff --git a/server/auth/internal/logic/email_manager.go b/server/auth/internal/logic/email_manager.go index 3c95563c..15ac3c0c 100644 --- a/server/auth/internal/logic/email_manager.go +++ b/server/auth/internal/logic/email_manager.go @@ -222,6 +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")) err := tpls.ExecuteTemplate(&result, templateName, data) if err != nil { log.Fatal(err) diff --git a/server/auth/internal/logic/websocket_test.go b/server/auth/internal/logic/websocket_test.go index 69d779a6..2ebc4044 100644 --- a/server/auth/internal/logic/websocket_test.go +++ b/server/auth/internal/logic/websocket_test.go @@ -28,97 +28,13 @@ func TestEmailSend(t *testing.T) { auth := smtp.PlainAuth("", "support@fusenpack.com", "wfbjpdgvaozjvwah", smtpServer) - body := `
-
-
-
- |
-
-
- 3e
-
-
- 474420502@qq.com
-
- |
-