Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mail ¶
type Mail struct {
// contains filtered or unexported fields
}
func NewMail ¶
func NewMail(sender, receiver, subject, templateName string, templateData interface{}, mailSendCallback func()) Mail
NewMail creates a new Mail. It currently only supports a single receiver. templateName has to be a valid file within the layout/html directory
func (Mail) ExecuteTemplate ¶
ExecuteTemplate executes the template and returns it
Click to show internal directories.
Click to hide internal directories.