Add all additional headers
j3s j3s@cyberia.club
Sun, 24 Nov 2019 14:21:14 -0600
1 files changed,
4 insertions(+),
1 deletions(-)
jump to
M
mail/main.go
→
mail/main.go
@@ -451,7 +451,10 @@ }
if len(e.InReplyTo) > 0 { fmt.Fprintf(&buf, "In-Reply-To: %s\r\n", strings.Join(e.InReplyTo, ",")) } - // go over remainer of headers + // go over remainder of headers + for k, v := range e.Header { + fmt.Fprintf(&buf, "%s: %s\r\n", k, strings.Join(v, ",")) + } fmt.Fprintf(&buf, "Subject: %s\r\n", e.Subject) fmt.Fprintf(&buf, "\r\n%s", e.TextBody)