diff --git a/email.go b/email.go index b68d3f2..3c5b265 100644 --- a/email.go +++ b/email.go @@ -64,6 +64,7 @@ func (e *Email) Attach(r io.Reader, filename string, c string) (a *Attachment, e at.Header.Set("Content-Type", "application/octet-stream") } at.Header.Set("Content-Disposition", fmt.Sprintf("attachment;\r\n filename=\"%s\"", filename)) + at.Header.Set("Content-ID", fmt.Sprintf("<%s>", filename)) at.Header.Set("Content-Transfer-Encoding", "base64") e.Attachments = append(e.Attachments, at) return at, nil