Versions in this module Expand all Collapse all v1 v1.0.2 Aug 23, 2019 Changes in this version + var ErrInvalidScheme = errors.New("invalid scheme") + var ErrNoRecipients = errors.New("no recipients specified") + func Auth(username, password, host string) smtp.Auth + func IsValidAddress(addr string) bool + type Message struct + func NewHTMLMessage(from, subject, body string) *Message + func NewMessage(from, subject, body string) *Message + func NewMessageType(from, subject, body, contentType string) *Message + func (m *Message) AddAttachment(filename string, attachment []byte) + func (m *Message) AddAttachmentFromFile(filename string) error + func (m *Message) AddBCC(emailAddr string) + func (m *Message) AddCC(emailAddr string) + func (m *Message) AddTo(emailAddr string) + func (m *Message) Body() []byte + func (m *Message) From() string + func (m *Message) Name() string + func (m *Message) Recipients() []string + func (m *Message) SetName(name string) + type SMTP struct + func NewSMTP(rawURL string, tlsConfig *tls.Config) (*SMTP, error) + func (s *SMTP) Send(msg *Message) error + func (s *SMTP) SetAuth(auth smtp.Auth)