Documentation
¶
Index ¶
- func CreateMockSMTPServer(be *Backend, useTLS bool) (*smtp.Server, net.Listener, error)
- func PingClient(listen net.Listener, useTLS bool, startTLS bool) (*smtp.Client, error)
- type Backend
- type Config
- type Message
- type Session
- func (s *Session) Auth(mech string) (sasl.Server, error)
- func (s *Session) AuthMechanisms() []string
- func (s *Session) Data(r io.Reader) error
- func (*Session) Logout() error
- func (s *Session) Mail(from string, _ *smtp.MailOptions) error
- func (s *Session) Rcpt(to string, _ *smtp.RcptOptions) error
- func (*Session) Reset()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMockSMTPServer ¶
nolint:revive // Yes, useTLS is a control flag.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func NewBackend ¶
func (*Backend) LastMessage ¶
LastMessage returns a copy of the last message received by the backend.
func (*Backend) NewSession ¶
NewSession is called after client greeting (EHLO, HELO).
Click to show internal directories.
Click to hide internal directories.