fix the wrong io.Writer

This commit is contained in:
astaxie 2016-01-18 00:03:39 +08:00
parent 9adf20d72e
commit da36d1d0e7
1 changed files with 2 additions and 2 deletions

View File

@ -103,8 +103,8 @@ func (e *Email) Bytes() ([]byte, error) {
}
e.Headers.Set("Content-Type", fmt.Sprintf("multipart/mixed;\r\n boundary=%s\r\n", w.Boundary()))
fmt.Fprintf(w, "%s:", "Content-Type")
fmt.Fprintf(w, " %s\r\n", fmt.Sprintf("multipart/mixed;\r\n boundary=%s\r\n", w.Boundary()))
fmt.Fprintf(buff, "%s:", "Content-Type")
fmt.Fprintf(buff, " %s\r\n", fmt.Sprintf("multipart/mixed;\r\n boundary=%s\r\n", w.Boundary()))
// Start the multipart/mixed part
fmt.Fprintf(buff, "--%s\r\n", w.Boundary())