Versions in this module Expand all Collapse all v0 v0.11.0 Feb 28, 2018 v0.10.3 Jan 8, 2018 Changes in this version + type Attachment struct + ContentType string + Name string + Reader io.Reader + type Body struct + Content string + ContentType string + type Message struct + Attachments []Attachment + Bcc []string + Bodies []Body + CC []string + From string + Headers map[string]string + Subject string + To []string + func NewMessage() Message + func (m *Message) AddAttachment(name, contentType string, r io.Reader) error + func (m *Message) AddBodies(data render.Data, renderers ...render.Renderer) error + func (m *Message) AddBody(r render.Renderer, data render.Data) error + func (m *Message) SetHeader(field, value string) + type SMTPSender struct + Dialer *gomail.Dialer + func NewSMTPSender(host string, port string, user string, password string) (SMTPSender, error) + func (sm SMTPSender) Send(message Message) error + type Sender interface + Send func(Message) error