Files
smtp/attachment.go
T

12 lines
308 B
Go
Raw Permalink Normal View History

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
}