Versions in this module Expand all Collapse all v1 v1.1.0 Aug 26, 2023 Changes in this version + type DefaultMailerConfigurator func(m *DefaultMailer) + func WithStartTLS(v bool) DefaultMailerConfigurator + func WithTLS(v bool) DefaultMailerConfigurator + func WithTLSConfig(cfg *tls.Config) DefaultMailerConfigurator v1.0.0 Apr 4, 2021 Changes in this version + type DefaultMailer struct + func New(addr string, auth smtp.Auth, useTLS bool, tlsConfig *tls.Config) *DefaultMailer + func (m *DefaultMailer) SendMail(ctx context.Context, from string, to []string, subject string, body string) error + func (m *DefaultMailer) String() string + type DummyMailer struct + Messages []Message + func NewDummy() *DummyMailer + func (m *DummyMailer) SendMail(ctx context.Context, from string, to []string, subject string, body string) error + type Mailer interface + SendMail func(ctx context.Context, from string, to []string, subject string, body string) error + type Message struct + Body string + From string + Subject string + To []string