Documentation ¶
Overview ¶
Package smtp provides a mockable wrapper for net/smtp.
Index ¶
- type Impl
- func (*Impl) CRAMMD5Auth(username string, secret string) smtp.Auth
- func (*Impl) Dial(addr string) (*smtp.Client, error)
- func (*Impl) NewClient(conn net.Conn, host string) (*smtp.Client, error)
- func (*Impl) PlainAuth(identity string, username string, password string, host string) smtp.Auth
- func (*Impl) SendMail(addr string, a smtp.Auth, from string, to []string, msg []byte) error
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { CRAMMD5Auth(username string, secret string) smtp.Auth Dial(addr string) (*smtp.Client, error) NewClient(conn net.Conn, host string) (*smtp.Client, error) PlainAuth(identity string, username string, password string, host string) smtp.Auth SendMail(addr string, a smtp.Auth, from string, to []string, msg []byte) error }
Click to show internal directories.
Click to hide internal directories.