Versions in this module Expand all Collapse all v0 v0.1.0 Dec 20, 2021 Changes in this version + const TAccountAddEmail + const TVerifyEmail + func ExecTemplate(name string, locale string, data interface{}) (string, error) + func Setup(conf *config.Mail) + func TemplateImagePath(name string) string + func TemplateLogoPath() string + type Attachment struct + ContentId string + Data []byte + Filename string + Inline bool + type Header struct + Key string + Value string + type Message struct + Attachments map[string]*Attachment + Bcc []*mail.Address + Body string + BodyType string + Cc []*mail.Address + Headers []Header + ReplyTo string + Subject string + To []*mail.Address + func HTMLMessage(subject string, body string) *Message + func TextMessage(subject string, body string) *Message + func (m *Message) AddBCC(address *mail.Address) []*mail.Address + func (m *Message) AddCC(address *mail.Address) []*mail.Address + func (m *Message) AddHeader(key string, value string) Header + func (m *Message) AddTO(address *mail.Address) []*mail.Address + func (m *Message) Attach(file string) error + func (m *Message) AttachBuffer(filename string, buf []byte, inline bool) error + func (m *Message) Inline(file string, cid string) error + func (m *Message) Send() error + type TemplateData struct + Logo template.URL + Title string