Versions in this module Expand all Collapse all v0 v0.7.1 Aug 5, 2021 Changes in this version + const MaxLineLength + var ErrClosed = errors.New("pool closed") + var ErrMissingBoundary = errors.New("No boundary found for multipart entity") + var ErrMissingContentType = errors.New("No Content-Type found for MIME entity") + var ErrTimeout = errors.New("timed out") + type Attachment struct + Content []byte + ContentType string + Filename string + HTMLRelated bool + Header textproto.MIMEHeader + type Email struct + Attachments []*Attachment + Bcc []string + Cc []string + From string + HTML []byte + Headers textproto.MIMEHeader + ReadReceipt []string + ReplyTo []string + Sender string + Subject string + Text []byte + To []string + func NewEmail() *Email + func NewEmailFromReader(r io.Reader) (*Email, error) + func (e *Email) Attach(r io.Reader, filename string, c string) (a *Attachment, err error) + func (e *Email) AttachFile(filename string) (a *Attachment, err error) + func (e *Email) Bytes() ([]byte, error) + func (e *Email) Send(addr string, a smtp.Auth) error + func (e *Email) SendWithStartTLS(addr string, a smtp.Auth, t *tls.Config) error + func (e *Email) SendWithTLS(addr string, a smtp.Auth, t *tls.Config) error + type Pool struct + func NewPool(address string, count int, auth smtp.Auth, opt_tlsConfig ...*tls.Config) (pool *Pool, err error) + func (p *Pool) Close() + func (p *Pool) Send(e *Email, timeout time.Duration) (err error) + func (p *Pool) SetHelloHostname(h string) v0.7.0 Aug 5, 2021