Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTMLMail ¶
type HTMLMail struct {
// contains filtered or unexported fields
}
HTMLMail text/plain mail instance
func (*HTMLMail) ExecuteTemplate ¶
ExecuteTemplates executes the associated template with the given data It returns an error or nil
type MailService ¶
type MailService struct {
// contains filtered or unexported fields
}
func NewMailService ¶
func NewMailService(config *SMTPConfig) *MailService
func (*MailService) NewHTMLMail ¶
func (s *MailService) NewHTMLMail(htmlTemplate *template2.Template, plainTemplate *template.Template) *HTMLMail
NewHTMLMail creates a new instance of a text/html mail It returns the instance
func (*MailService) NewTextMail ¶
func (s *MailService) NewTextMail(template *template.Template) *TextMail
NewTextMail creates a new instance of a text/plain mail It returns the instance
type SMTPConfig ¶
type TextMail ¶
type TextMail struct {
// contains filtered or unexported fields
}
TextMail text/plain mail instance
func (*TextMail) ExecuteTemplate ¶
ExecuteTemplates executes the associated template with the given data It returns an error or nil
Click to show internal directories.
Click to hide internal directories.