Documentation ¶
Index ¶
- func Init(tomlFilepath string) error
- func InitUsingJSON(configs []EmailConfig)
- type Email
- func (email *Email) ParsePlainText(templateFileText string, templateData interface{}) error
- func (email *Email) ParseTemplateFile(templateFilePath string, templateData interface{}) error
- func (email *Email) ParseTemplateText(templateFileText string, templateData interface{}) error
- func (email *Email) Send() error
- func (email *Email) SendMail(templateFilePath string, templateData interface{}) error
- func (email *Email) SendMailFromSLS(hostName string) error
- func (email *Email) SendMailWithHandlebar(templateText string, templateData interface{}) error
- func (email *Email) SetAlternateText(plainBody string)
- type EmailConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitUsingJSON ¶
func InitUsingJSON(configs []EmailConfig)
InitUsingJSON initializes Email Connections for give JSON data
Types ¶
type Email ¶
type Email struct {
// contains filtered or unexported fields
}
func (*Email) ParsePlainText ¶
ParsePlainText - ParsePlainText
func (*Email) ParseTemplateFile ¶ added in v1.2.12
func (*Email) ParseTemplateText ¶
ParseTemplateText - ParseTemplateText
func (*Email) SendMail ¶
SendMail - send email service sends email as per the given html template and data templateData can contain any type of values, including array, slice, map, struct and func
func (*Email) SendMailFromSLS ¶
SendMailFromSLS -send email
func (*Email) SendMailWithHandlebar ¶
SendMailWithHandlebar - send email service sends email as per the given html text and data templateData can contain any type of values, including array, slice, map, struct and func
func (*Email) SetAlternateText ¶
SetAlternateText - set alternate text for email
Click to show internal directories.
Click to hide internal directories.