Versions in this module Expand all Collapse all v0 v0.0.1 Mar 5, 2024 Changes in this version + type Config struct + AuthProtocol string + FromEmail string + Host string + MaxConns int + Password string + Port int + TLSSkipVerify bool + TLSType string + Timeout time.Duration + Username string + type SMTP struct + func New(cfg Config) (*SMTP, error) + func (s *SMTP) AddressDesc() string + func (s *SMTP) AddressName() string + func (s *SMTP) ChannelDesc() string + func (s *SMTP) ChannelName() string + func (s *SMTP) ID() string + func (s *SMTP) MaxAddressLen() int + func (s *SMTP) MaxBodyLen() int + func (s *SMTP) MaxOTPLen() int + func (s *SMTP) Push(otp models.OTP, subject string, m []byte) error + func (s *SMTP) ValidateAddress(to string) error