(content string, contentType string)
| 72 | } |
| 73 | |
| 74 | func (m *Message) writeText(content string, contentType string) { |
| 75 | m.writeBoundary() |
| 76 | m.writeHeader("Content-Type", contentType+"; charset=UTF-8") |
| 77 | m.buffer.WriteString("\r\n") |
| 78 | m.buffer.WriteString(content) |
| 79 | m.buffer.WriteString("\r\n") |
| 80 | m.buffer.WriteString("\r\n") |
| 81 | } |
| 82 | |
| 83 | func (m *Message) writeFile(f *File, disposition string) { |
| 84 | m.writeBoundary() |
no test coverage detected