Documentation
¶
Overview ¶
Package email implements adapters for sending messages over smtp
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
Message is an email body. It collects and formats email messages for transmission
func (Message) Bytes ¶
Bytes formats the message for transmission according to the https://rfc-editor.org/rfc/rfc822.html spec
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
Sender holds and smtp target config and allows sending to the server.
type SenderOption ¶
SenderOption is an optional parameter to NewSender.
func WithPlainAuth ¶
func WithPlainAuth(username, password string) SenderOption
WithPlainAuth adds SMTP Plain Auth credentials to the Sender
Click to show internal directories.
Click to hide internal directories.