Documentation
¶
Overview ¶
Package mail sends plain-text notices through an SMTP server (the updater's mails to the admin). Without a host it only logs what it would send, as etherpad-lite does.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TransportKey ¶
TransportKey identifies the connection settings: when it changes (host, port, TLS or login, after settings were saved) a new client is built. etherpad-lite's smtpTransportKey; a host-only key would keep rotated credentials or a new port from taking effect.
Types ¶
type Mailer ¶
type Mailer struct {
Settings func() Config
Logger *zap.SugaredLogger
// contains filtered or unexported fields
}
Mailer sends mail with the settings it reads at every send, so saved settings apply without a restart.