Documentation ¶
Index ¶
- func InitMailer()
- func SendHtmlTemplateEmail(from string, to []string, templateName string, data map[string]interface{})
- func TemplateEmailBodyContent(emailTemplate Template, data map[string]interface{}) (string, error)
- func TemplateSubjectContent(emailTemplate Template, data map[string]interface{}) (string, error)
- type Placeholder
- type SmtpServerConfig
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitMailer ¶ added in v0.1.1
func InitMailer()
func SendHtmlTemplateEmail ¶ added in v0.1.1
func TemplateEmailBodyContent ¶ added in v0.1.1
Types ¶
type Placeholder ¶ added in v0.1.1
type SmtpServerConfig ¶ added in v0.1.1
type Template ¶ added in v0.1.1
type Template struct { Name string `json:"name"` Description string `json:"description"` Subject string `json:"subject"` MessageContent string `json:"message-content"` FullContent string `json:"full-content"` ContentType string `json:"content-type"` Placeholders []Placeholder `json:"placeholders"` }
func GetTemplateByName ¶ added in v0.1.1
func GetTemplates ¶ added in v0.1.2
func GetTemplates() []Template
Click to show internal directories.
Click to hide internal directories.