From 0af387930d02896f7578288a9b30743365401fa4 Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Tue, 5 Apr 2022 19:48:07 +0200 Subject: [PATCH] Set Content-Type for contact emails --- contact.go | 1 + 1 file changed, 1 insertion(+) diff --git a/contact.go b/contact.go index 943783a..5d00902 100644 --- a/contact.go +++ b/contact.go @@ -79,6 +79,7 @@ func (*goBlog) sendContactEmail(cc *configContact, body, replyTo string) error { // Build email email := bufferpool.Get() defer bufferpool.Put(email) + _, _ = email.WriteString("Content-Type: text/plain; charset=UTF-8\n") _, _ = fmt.Fprintf(email, "To: %s\n", cc.EmailTo) if replyTo != "" { _, _ = fmt.Fprintf(email, "Reply-To: %s\n", replyTo)