Versions in this module Expand all Collapse all v1 v1.1.2 Jul 22, 2021 v1.1.1 Jul 9, 2021 Changes in this version type SMTPConfig + ConnectTimeout time.Duration v1.1.0 Jun 15, 2021 v1.0.1 Mar 16, 2021 v1.0.0 Mar 16, 2021 Changes in this version + const ResetPasswordSubject + const VerificationSubject + var ResetPasswordAPI = template.Must(template.New("email_verification.txt").Parse(...)) + var ResetPasswordUI = template.Must(template.New("email_verification.txt").Parse(...)) + var VerificationAPI = template.Must(template.New("email_verification.txt").Parse(...)) + var VerificationUI = template.Must(template.New("email_verification.txt").Parse(...)) + type Config struct + From string + ReplyTo string + ResetURL string + VerifyURL string + type SMTPConfig struct + Host string + Password string + PasswordFile string + Port uint16 + TLS bool + Username string + type SMTPSender struct + func NewSMTPSender(c Config, smtpConfig SMTPConfig) (*SMTPSender, error) + func (m *SMTPSender) Config() *Config + func (m *SMTPSender) SendEmail(tpl *template.Template, subject string, info UserInfo) error + type Sender interface + Config func() *Config + SendEmail func(tpl *template.Template, subject string, info UserInfo) error + type UserInfo struct + Token string + User *models.User