mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 13:20:55 +00:00
fix the wrong io.Writer
This commit is contained in:
parent
9adf20d72e
commit
da36d1d0e7
@ -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()))
|
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(buff, "%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\r\n", fmt.Sprintf("multipart/mixed;\r\n boundary=%s\r\n", w.Boundary()))
|
||||||
|
|
||||||
// Start the multipart/mixed part
|
// Start the multipart/mixed part
|
||||||
fmt.Fprintf(buff, "--%s\r\n", w.Boundary())
|
fmt.Fprintf(buff, "--%s\r\n", w.Boundary())
|
||||||
|
Loading…
Reference in New Issue
Block a user