Documentation
¶
Overview ¶
Package email defines the standard email interface for sending email messages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Email ¶
type Email struct { From *mail.Address ReplyTo *mail.Address Recipient *Recipient Recipients []*Recipient Subject string Content string MIMEType string }
Email defines an email to send, indicating who its from, who should receive replies, who should be the recipient(s), and the actual subject and content of the message.
type MockSender ¶
MockSender is a test mock for the Sender interface.
type Recipient ¶
type Recipient struct { Address *mail.Address Type RecipientType }
A Recipient defines a recipient of an email.
type RecipientType ¶
type RecipientType string
RecipientType indicates the type of recipient.
const ( ToRecipient RecipientType = "to" CCRecipient RecipientType = "cc" BCCRecipient RecipientType = "bcc" )
List of valid recipient types.
Click to show internal directories.
Click to hide internal directories.