diff --git a/msgwriter.go b/msgwriter.go index 460e82d4..255fe391 100644 --- a/msgwriter.go +++ b/msgwriter.go @@ -102,7 +102,7 @@ func (mw *msgWriter) newPart(h map[string][]string) { // writePart writes the corresponding part to the Msg body func (mw *msgWriter) writePart(p *Part, cs Charset) { ct := fmt.Sprintf("%s; charset=%s", p.ctype, cs) - cte := fmt.Sprintf("%s", p.enc) + cte := p.enc.String() if mw.d == 0 { mw.writeHeader(HeaderContentType, ct) mw.writeHeader(HeaderContentTransferEnc, cte)