Documentation
¶
Overview ¶
Package emailprovider defines provider-neutral email sending types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
Recipient Address
Subject string
HTMLBody string
TextBody string
Metadata map[string]string
}
Message is one private email for one recipient. A Sender may batch multiple messages internally, but it must not expose recipients to one another.
type Sender ¶
Sender submits email in bulk. Results must correspond by index to messages. A non-nil method error indicates that at least one result may be incomplete; callers should inspect both the returned results and error.
type Status ¶
type Status string
Status describes whether a provider accepted a message for delivery.
const ( // StatusAccepted means the provider accepted the message. It does not imply delivery. StatusAccepted Status = "accepted" // StatusRejected means the provider rejected the message before delivery. StatusRejected Status = "rejected" // StatusUnknown means the provider could not determine whether it accepted the message. StatusUnknown Status = "unknown" )
Click to show internal directories.
Click to hide internal directories.