Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SMTPConfig ¶
type SMTPConfig struct { Smtp struct { Identity string `yaml:"identity"` Username string `yaml:"username"` Password string `yaml:"password"` Host string `yaml:"host"` Port int64 `yaml:"port"` } Email struct { CodeEmailSubjectLine string `yaml:"codeEmailSubjectLine"` CodeEmailBody string `yaml:"codeEmailBody"` } }
type SmtpModule ¶
type SmtpModule struct { Address string Auth smtp.Auth CodeEmailBody string CodeEmailSubjectLine string OriginEmail string }
func NewSmtpModule ¶
func NewSmtpModule(smtpConfigFilePath string) (*SmtpModule, error)
func (*SmtpModule) SendCodeEmail ¶
func (smtpModule *SmtpModule) SendCodeEmail(challengeEmail string, challengeCode string) (Status, error)
Click to show internal directories.
Click to hide internal directories.