set Content-Transfer-Encoding header, fixes #32

This commit is contained in:
Aine 2022-10-04 21:10:56 +03:00
parent 267f5cb949
commit 4c6b7c2c1a
No known key found for this signature in database
GPG key ID: 34969C908CCA2804

View file

@ -129,6 +129,9 @@ func (e *Email) Compose(privkey string) string {
data.WriteString("Content-Type: text/plain; charset=\"UTF-8\"")
data.WriteString("\r\n")
data.WriteString("Content-Transfer-Encoding: 8BIT")
data.WriteString("\r\n")
data.WriteString("From: ")
data.WriteString(e.From)
data.WriteString("\r\n")