Versions in this module Expand all Collapse all v0 v0.3.0 Mar 3, 2016 v0.2.3 Jan 13, 2016 v0.2.2 Dec 29, 2015 v0.2.1 Dec 21, 2015 v0.2.0 Dec 16, 2015 Changes in this version + func Send(s Sender, msg ...*Message) error + type Dialer struct + Auth smtp.Auth + Host string + Port int + SSL bool + TLSConfig *tls.Config + func NewPlainDialer(host string, port int, username, password string) *Dialer + func (d *Dialer) Dial() (SendCloser, error) + func (d *Dialer) DialAndSend(m ...*Message) error + type Encoding string + const Base64 + const QuotedPrintable + const Unencoded + type FileSetting func(*file) + func SetCopyFunc(f func(io.Writer) error) FileSetting + func SetHeader(h map[string][]string) FileSetting + type Message struct + func NewMessage(settings ...MessageSetting) *Message + func (m *Message) AddAlternative(contentType, body string) + func (m *Message) AddAlternativeWriter(contentType string, f func(io.Writer) error) + func (m *Message) Attach(filename string, settings ...FileSetting) + func (m *Message) Embed(filename string, settings ...FileSetting) + func (m *Message) FormatAddress(address, name string) string + func (m *Message) FormatDate(date time.Time) string + func (m *Message) GetHeader(field string) []string + func (m *Message) Reset() + func (m *Message) SetAddressHeader(field, address, name string) + func (m *Message) SetBody(contentType, body string) + func (m *Message) SetDateHeader(field string, date time.Time) + func (m *Message) SetHeader(field string, value ...string) + func (m *Message) SetHeaders(h map[string][]string) + func (m *Message) WriteTo(w io.Writer) (int64, error) + type MessageSetting func(m *Message) + func SetCharset(charset string) MessageSetting + func SetEncoding(enc Encoding) MessageSetting + type SendCloser interface + Close func() error + type SendFunc func(from string, to []string, msg io.WriterTo) error + func (f SendFunc) Send(from string, to []string, msg io.WriterTo) error + type Sender interface + Send func(from string, to []string, msg io.WriterTo) error