We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdc01e3 commit a306764Copy full SHA for a306764
attachment.go
@@ -13,7 +13,6 @@ type attachment struct {
13
contentType string
14
header textproto.MIMEHeader
15
content *bytes.Buffer
16
- related bool
17
}
18
19
func (at *attachment) setDefaultHeader() {
@@ -29,11 +28,7 @@ func (at *attachment) setDefaultHeader() {
29
28
at.header.Set("Content-Type", ct)
30
31
// set disposition
32
- disposition := fmt.Sprintf("attachment; filename='%s'", at.filename)
33
- if at.related {
34
- disposition = "inline"
35
- }
36
- at.header.Set("Content-Disposition", disposition)
+ at.header.Set("Content-Disposition", fmt.Sprintf("attachment; filename='%s'", at.filename))
37
38
// set content-id
39
id, _ := generateContentID(at.filename)
0 commit comments