Documentation ¶
Index ¶
Constants ¶
View Source
const ( //SMTPNoAuth login using no authentication SMTPNoAuth = "NO_AUTH" //SMTPPlain login using PLAIN authentication for google SMTPPlain = "PLAIN_AUTH" //SMTPLogin login using no authentication for other SMTPLogin = "LOGIN" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleEmailMaker ¶
type SimpleEmailMaker struct {
// contains filtered or unexported fields
}
SimpleEmailMaker makes email from config
func NewSimpleEmailMaker ¶
func NewSimpleEmailMaker(c *viper.Viper) (*SimpleEmailMaker, error)
NewSimpleEmailMaker initiates simple email maker
type SimpleEmailSender ¶
type SimpleEmailSender struct {
// contains filtered or unexported fields
}
SimpleEmailSender uses standard esmtp lib to send emails
func NewSimpleEmailSender ¶
func NewSimpleEmailSender(c *viper.Viper) (*SimpleEmailSender, error)
NewSimpleEmailSender initiates email sender
type TemplateEmailMaker ¶ added in v0.2.46
type TemplateEmailMaker struct {
// contains filtered or unexported fields
}
TemplateEmailMaker makes email from provided template file
func NewTemplateEmailMaker ¶ added in v0.2.46
func NewTemplateEmailMaker(c *viper.Viper) (*TemplateEmailMaker, error)
NewTemplateEmailMaker initiates new maker object
Click to show internal directories.
Click to hide internal directories.