Documentation
¶
Overview ¶
Package mail sends plain-text email. Every service that mails a person goes through Sender, so tests swap in a Recorder and development without a mail server swaps in a Logger.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Logger ¶
Logger writes each message to the log instead of sending it, for development without a mail server. The body holds live links, so it must never be used where logs are shared.
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
Recorder keeps every message for a test to read back.
Click to show internal directories.
Click to hide internal directories.