Versions in this module Expand all Collapse all v1 v1.0.0 Dec 19, 2024 Changes in this version + func WithAuth(auth smtp.Auth) func(*Mailer) + func WithDialTimeout(t time.Duration) func(*Mailer) + func WithLocalName(l string) func(mailer *Mailer) + func WithSSLEnabled(s bool) func(*Mailer) + func WithSecrets(s string) func(*Mailer) + func WithTLSConfig(cfg *tls.Config) func(*Mailer) + type Mailer struct + Host string + Password string + Port int + Username string + func NewMailer(host string, port int, username, password string, opts ...Options) *Mailer + func (m *Mailer) ConnectAndAuthenticate() (SendCloser, error) + func (m *Mailer) Send(message message.Message) error + type Options func(*Mailer) + type SendCloser interface + Close func() error + Send func(message message.Message) error