Documentation ¶ Index ¶ type Message func (exp *Message) Compare(got *Message) error type Server func NewServer() (*Server, error) func (s *Server) Close() error func (s *Server) Errors() []error func (s *Server) SentMessages() []*Message 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 Source Files ¶ View all Source files smtptest.go Click to show internal directories. Click to hide internal directories.