16 lines
452 B
Go
16 lines
452 B
Go
|
|
package smtp
|
||
|
|
|
||
|
|
// Message is a fully-specified email ready for delivery.
|
||
|
|
// Body must be pre-rendered before passing to [Sender.Send] —
|
||
|
|
// use [Template.Render] to produce it from an HTML template.
|
||
|
|
type Message struct {
|
||
|
|
To []string
|
||
|
|
CC []string
|
||
|
|
BCC []string
|
||
|
|
ReplyTo string
|
||
|
|
Subject string
|
||
|
|
Body string
|
||
|
|
ContentType string // "text/plain" or "text/html"; defaults to "text/plain"
|
||
|
|
Attachments []Attachment
|
||
|
|
}
|