Versions in this module Expand all Collapse all v1 v1.3.3 Oct 2, 2014 v1.3.1 Aug 21, 2014 Changes in this version + func SendMail(addr string, a Auth, from string, to []string, msg []byte) error + type Auth interface + Next func(fromServer []byte, more bool) (toServer []byte, err error) + Start func(server *ServerInfo) (proto string, toServer []byte, err error) + func CRAMMD5Auth(username, secret string) Auth + func PlainAuth(identity, username, password, host string) Auth + type Client struct + Text *textproto.Conn + func Dial(addr string) (*Client, error) + func NewClient(conn net.Conn, host string) (*Client, error) + func (c *Client) Auth(a Auth) error + func (c *Client) Close() error + func (c *Client) Data() (io.WriteCloser, error) + func (c *Client) Extension(ext string) (bool, string) + func (c *Client) Hello(localName string) error + func (c *Client) Mail(from string) error + func (c *Client) Quit() error + func (c *Client) Rcpt(to string) error + func (c *Client) Reset() error + func (c *Client) StartTLS(config *tls.Config) error + func (c *Client) Verify(addr string) error + type ServerInfo struct + Auth []string + Name string + TLS bool