Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoopMailer ¶
type NoopMailer struct{}
NoopMailer is a domain.Mailer implementation that discards all emails. Use in unit tests and local development.
type SMTPMailer ¶
type SMTPMailer struct {
// contains filtered or unexported fields
}
SMTPMailer implements domain.Mailer via net/smtp.
func NewSMTPMailer ¶
func NewSMTPMailer(host string, port int, username, password, from string) (*SMTPMailer, error)
NewSMTPMailer constructs an SMTPMailer. Returns an error if required fields are empty.
Click to show internal directories.
Click to hide internal directories.