12 lines
308 B
Go
12 lines
308 B
Go
|
|
package smtp
|
||
|
|
|
||
|
|
import "io"
|
||
|
|
|
||
|
|
// Attachment is a named file included in a [Message].
|
||
|
|
// Data is consumed once during [Sender.Send] and must not be reused.
|
||
|
|
type Attachment struct {
|
||
|
|
Name string
|
||
|
|
ContentType string // e.g. "application/pdf"; defaults to "application/octet-stream"
|
||
|
|
Data io.Reader
|
||
|
|
}
|