Versions in this module Expand all Collapse all v0 v0.1.0 Nov 22, 2021 Changes in this version + var ErrChanNotOpen = errors.New("email queue does not open") + var Lock sync.RWMutex + func Init(cfg Config) + func NewActivationEmail(username, activateURL string) (subject string, body string) + func NewActivationHTMLEmail(username, activateURL string) (subject string, body string) + func NewResetPasswordEmail(username, resetURL string) (subject string, body string) + func NewResetPasswordHTMLEmail(username, resetURL string) (subject string, body string) + func Send(to, subject, body string) error + type ActiveUserMailData struct + ActivateURL string + HomeURL string + WebsiteDomain string + WebsiteName string + Year int + type Config struct + Address string + Host string + KeepAlive int + Name string + Password string + Port int + ReplyTo string + Username string + type Driver interface + Close func() + Send func(to, subject, body string) error + var Client Driver + type ResetPasswordMailData struct + HomeURL string + ResetURL string + WebsiteDomain string + WebsiteName string + Year int + type SMTP struct + Config SMTPConfig + func NewSMTPClient(config SMTPConfig) *SMTP + func (c *SMTP) Close() + func (c *SMTP) Init() + func (c *SMTP) Send(to, subject, body string) error + type SMTPConfig struct + Address string + Host string + Keepalive int + Name string + Password string + Port int + ReplyTo string + Username string