Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetTemplatesDir ¶
func SetTemplatesDir(dir string)
SetTemplatesDir sets the mail templates directory
Types ¶
type BaseMailer ¶
type BaseMailer struct { T core.TranslateFunc // Template variables I18n map[string]string ServiceName string ServiceLogo string ServiceUrl string ServicePostalAddress string ServiceCopyrightNotice string // contains filtered or unexported fields }
BaseMailer is a base for all mailers
func NewBaseMailer ¶
func NewBaseMailer(kind string, user *models.User) *BaseMailer
NewBaseMailer instanciates a new BaseMailer
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
Sender send mail via SMTP
func (*Sender) SetSMTPConf ¶
SetSMTPConf sets the SMTP configuration
type SignupMailer ¶
type SignupMailer struct { *BaseMailer // Template variables Email string ActivationUrl string }
SignupMailer implements the signup mailer
func NewSignupMailer ¶
func NewSignupMailer(user *models.User) *SignupMailer
NewSignupMailer instanciates a new SignupMailer
func (*SignupMailer) Subject ¶
func (mailer *SignupMailer) Subject() string
Subject is part of Mailer interface
Click to show internal directories.
Click to hide internal directories.