Versions in this module Expand all Collapse all v0 v0.6.22 Dec 20, 2023 Changes in this version + type CopyFunc func(io.Writer) (int, error) + type Dialer struct + Host string + Password string + Port int + SSLOnConnect bool + TLSConfig *tls.Config + Timeout time.Duration + Username string + func (d *Dialer) Dial() (*Sender, error) + func (d *Dialer) DialAndSend(m *Message) error + type Message struct + func NewMessage() *Message + func (m *Message) AddBcc(address ...string) + func (m *Message) AddCc(address ...string) + func (m *Message) AddCopierBody(contentType string, copier CopyFunc) + func (m *Message) AddHeader(key string, value ...string) + func (m *Message) AddHtmlBody(html string) + func (m *Message) AddPlainBody(text string) + func (m *Message) AddRcptBcc(bcc ...*mail.Address) + func (m *Message) AddRcptCc(cc ...*mail.Address) + func (m *Message) AddRcptTo(to ...*mail.Address) + func (m *Message) AddTo(address ...string) + func (m *Message) Attach(filename string, copier CopyFunc) + func (m *Message) Embed(cid string, copier CopyFunc) + func (m *Message) SetBcc(address ...string) + func (m *Message) SetCc(address ...string) + func (m *Message) SetCopierBody(contentType string, copier CopyFunc) + func (m *Message) SetDate(datefmt string) + func (m *Message) SetFrom(from string) + func (m *Message) SetHtmlBody(html string) + func (m *Message) SetPlainBody(text string) + func (m *Message) SetRcptBcc(bcc ...*mail.Address) + func (m *Message) SetRcptCc(cc ...*mail.Address) + func (m *Message) SetRcptTo(to ...*mail.Address) + func (m *Message) SetSubject(subject string) + func (m *Message) SetTo(address ...string) + func (m *Message) SetUserAgent(ua string) + func (m *Message) WriteTo(w io.Writer) (int64, error) + type Sender struct + func (s *Sender) Close() error + func (s *Sender) Send(m *Message) error