Documentation
¶
Overview ¶
Package email provides a simple SMTP email sender with an optional stub mode for development.
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 sends emails. When cfg.Stub is true it only logs; real SMTP is used otherwise.
func New ¶
func New(cfg config.EmailConfig, logger *log.LoggerWrapper) *Sender
New returns a Sender configured from cfg.
Click to show internal directories.
Click to hide internal directories.