fix email

This commit is contained in:
2026-09-15 04:50:27 +07:00
parent 30bb456eef
commit 5a7c846025
4 changed files with 36 additions and 16 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ func buildMessage(from, fromName, to, subject, replyTo, body, html string) []byt
b.Grow(len(from) + len(fromName) + len(to) + len(subject) + len(body) + len(html) + 512)
b.WriteString("From: ")
if fromName != "" {
b.WriteString(mime.QEncoding.Encode("utf-8", fromName))
b.WriteString(mime.BEncoding.Encode("utf-8", fromName))
b.WriteString(" <")
b.WriteString(from)
b.WriteString(">\r\n")