Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailConfigType ¶
type EmailConfigType struct {
Username string `json:"username"`
Password string `json:"password"`
Port int `json:"port"`
ServerUrl string `json:"serverUrl"`
MsgFrom string `json:"msgFrom"`
ApiKey string `json:"apiKey"`
Tls string `json:"tls"`
InsecureSkipVerify bool `json:"insecureSkipVerify"`
}
func (EmailConfigType) SendEmail ¶
func (mailer EmailConfigType) SendEmail(recipients []string, message string, subject string, emailType string) mcresponse.ResponseMessage
SendEmail sends text and HTML messages, attachment etc.
type EmailFunc ¶
type EmailFunc func(props EmailPropsType) interface{}
type EmailPropsType ¶
type EmailPropsType map[string]interface{}
type EmailSubjectFunc ¶
type EmailSubjectFunc func(props EmailPropsType) string
type EmailTemplateType ¶
type EmailTemplateType struct {
Subject EmailSubjectFunc
Text EmailFunc
Html EmailFunc
}
type MessageObject ¶
type TemplateDataType ¶
type TemplateDataType map[string]interface{}
Click to show internal directories.
Click to hide internal directories.