Versions in this module Expand all Collapse all v0 v0.2.4 May 10, 2022 Changes in this version + func LoginAuth(username, password string) smtp.Auth + func Provide() fx.Option + type Client interface + SendHTML func(to, content, subject string) error + func NewSmtPool(conf *Config) (Client, error) + type CodeGenerator interface + Generate func(length int) string + func NewRandomNumberCodeGenerator() CodeGenerator + type Config struct + AuthType string + From string + Host string + IdleTimeout int + InsecureSkipVerify bool + MaxConns int + Password string + PoolWaitTimeout int + Port int + SSL bool + UserName string + func NewConfig(v *viper.Viper, logger *zap.Logger) (*Config, error) + type RandomNumberCodeGenerator struct + func (m *RandomNumberCodeGenerator) Generate(length int) string + type SmtpPool struct + func (sp *SmtpPool) SendHTML(to, content, subject string) error v0.2.3 May 3, 2022 v0.2.2 May 3, 2022 v0.2.1 Apr 19, 2022