add missing MIME-Version header

This commit is contained in:
Aine 2022-11-12 13:01:27 +02:00
parent f835a7560d
commit 0c01987c93
No known key found for this signature in database
GPG key ID: 34969C908CCA2804

View file

@ -136,6 +136,9 @@ func (e *Email) Compose(privkey string) string {
domain := strings.SplitN(e.From, "@", 2)[1]
data.WriteString("MIME-Version: 1.0")
data.WriteString("\r\n")
data.WriteString("Content-Type: text/plain; charset=\"UTF-8\"")
data.WriteString("\r\n")