Versions in this module Expand all Collapse all v0 v0.0.2 Nov 25, 2021 v0.0.1 Nov 23, 2021 Changes in this version + func SendMail(m *Mail) error + func Setup(params *Params) error + type Attachment struct + Data []byte + Filename string + Inline bool + type Header struct + Key string + Value string + type Mail struct + AfterHook func(*Mail, error) error + Message *Message + Reply bool + Schema 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) error + type Params struct + Timeout time.Duration + Url string