test

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const PortSMTP = "2525"

PortSMTP for tests

Variables

This section is empty.

Functions

func StartSMTP

func StartSMTP()

StartSMTP server

Types

type Backend

type Backend struct{}

The Backend implements SMTP server methods.

func (*Backend) NewSession added in v0.3.2

func (bkd *Backend) NewSession(_ *smtp.Conn) (smtp.Session, error)

type Session

type Session struct{}

A Session is returned after successful login.

func (*Session) AuthPlain added in v0.3.2

func (s *Session) AuthPlain(username, password string) error

AuthPlain check stub

func (*Session) Data

func (s *Session) Data(r io.Reader) error

Data receives the message body

func (*Session) Logout

func (s *Session) Logout() error

Logout session

func (*Session) Mail

func (s *Session) Mail(from string, opts *smtp.MailOptions) error

Mail check sender

func (*Session) Rcpt

func (s *Session) Rcpt(to string) error

Rcpt check recipients

func (*Session) Reset

func (s *Session) Reset()

Reset session

Jump to

Keyboard shortcuts

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