Documentation
¶
Overview ¶
Package smtpmail sends mail through a relay. It is the adapter: the only package that knows this app's messages leave over SMTP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
Sender talks to one relay. Constructing it connects to nothing: boot validates what is local and stops there, so a relay being down is a message that waits in the outbox rather than a process that will not start.
func New ¶
New returns a sender for the relay at addr. A user of "" means the relay wants no credentials, which is the usual shape for a relay on localhost.
Click to show internal directories.
Click to hide internal directories.