Documentation ¶
Index ¶
Constants ¶
View Source
const Key keyType = iota
Variables ¶
View Source
var ( Fallback = mailer.Fallback WithReporter = mailer.WithReporter )
Functions ¶
Types ¶
type Config ¶
type Config struct { DefaultEmailTemplate *Email AssetFS assetfs.Interface Sender SenderInterface From *mail.Address *render.Render }
Config mailer config
type GetSiteMailer ¶
type GetSiteMailer func(site *core.Site) *SiteMailer
type Mailer ¶
type Mailer struct {
*Config
}
Mailer mailer struct
func (Mailer) WithSender ¶
func (mailer Mailer) WithSender(Sender SenderInterface) Mailer
WithSender set sender now
type SendHandler ¶
type SendHandler = mailer.SendHandler
type SenderFunc ¶
type SenderFunc = mailer.SenderFunc
type SenderInterface ¶
type SendhandlerFunc ¶
type SendhandlerFunc = mailer.SendHandlerFunc
type SiteMailer ¶
func FromSite ¶
func FromSite(site *core.Site) *SiteMailer
func (SiteMailer) Mailer ¶
func (this SiteMailer) Mailer() *Mailer
type Template ¶
type Template struct { Name string Layout string Data interface{} Context *core.Context // contains filtered or unexported fields }
Template email template
func (Template) FuncsValues ¶
func (tmpl Template) FuncsValues(funcValues ...template.FuncValues) Template
FuncsValues set template's funcs
Click to show internal directories.
Click to hide internal directories.