Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine provides the capability to parse/render email template and send it out via SMTP protocol.
func NewEngine ¶
func NewEngine(asset *support.Asset, config *support.Config, i18n *support.I18n, logger *support.Logger, viewFuncs map[string]interface{}) *Engine
NewEngine initializes the engine instance to manage email template and sending.
func (*Engine) AddPreview ¶
AddPreview add the mail HTML/text template preview.
func (*Engine) ComposeEmail ¶
ComposeEmail constructs the HTML/text content and transforms mailer.Mail into email.Email.
func (*Engine) Deliveries ¶
Deliveries returns the Mail array which is used for unit test with APPY_ENV=test.
Click to show internal directories.
Click to hide internal directories.