Documentation
¶
Index ¶
Constants ¶
View Source
const ( SmtpAuthPlain = "PLAIN" SmtpAuthLogin = "LOGIN" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mailer ¶
type Mailer interface {
// Send sends an email with the provided Message.
Send(message *Message) error
}
Mailer defines a base mail client interface.
type Message ¶
type Message struct {
From mail.Address `json:"from"`
To []mail.Address `json:"to"`
Bcc []mail.Address `json:"bcc"`
Cc []mail.Address `json:"cc"`
Subject string `json:"subject"`
HTML string `json:"html"`
Text string `json:"text"`
Headers map[string]string `json:"headers"`
Attachments map[string]io.Reader `json:"attachments"`
}
Message defines a generic email message struct.