smtptest

package
v1.5.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Header mail.Header
	Body   string
}

func (*Message) Compare

func (exp *Message) Compare(got *Message) error

Compare returns a useful error message if the two message are note equal. Only headers that are present in the exp message are compared, thus ignoring any extra headers in the got message.

type Server

type Server struct {
	Host string
	Port int
	Err  error
	// contains filtered or unexported fields
}

func NewServer

func NewServer() (*Server, error)

func (*Server) Close

func (s *Server) Close() error

func (*Server) Errors

func (s *Server) Errors() []error

func (*Server) SentMessages

func (s *Server) SentMessages() []*Message

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL