Versions in this module Expand all Collapse all v0 v0.0.5 Oct 12, 2021 v0.0.3 Oct 12, 2021 v0.0.2 Oct 11, 2021 v0.0.1 Oct 9, 2021 Changes in this version + const BEncoding + const Bcc + const Cc + const ContentDescription + const ContentDisposition + const ContentTransferEncoding + const ContentType + const From + const MIMEVersion + const QEncoding + const Subject + const To + type Client struct + func NewClient(urlStr string) (*Client, error) + func (c *Client) Send(ctx context.Context, msg *Message) (err error) + type Conn struct + func Dial(ctx context.Context, addr string, auth smtp.Auth) (*Conn, error) + func (c *Conn) Send(ctx context.Context, from string, to []string, msg []byte) (err error) + type Header struct + Name string + Values []string + type LineWriter struct + func NewLineWriter(w io.Writer) *LineWriter + func (lw *LineWriter) Write(b []byte) (total int, err error) + type Message struct + Body []byte + BodyParts []Message + Headers []Header + func (m *Message) Bytes() ([]byte, error) + func (m *Message) IsMultipart() bool + type WordDecoder struct + CharsetReader func(charset string, input io.Reader) (io.Reader, error) + func (d *WordDecoder) Decode(word string) (string, error) + func (d *WordDecoder) DecodeHeader(header string) (string, error) + type WordEncoder byte + func (e WordEncoder) Encode(charset, s string) string