mockevsmtp

package
v0.0.0-...-b8b9e6a Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const Separator = "\r\n"

Separator separate mock message of Server

Variables

View Source
var SuccessServer = []string{
	"220 hello world",
	"502 EH?",
	"250 mx.google.com at your service",
	"250 Sender ok",
	"550 address does not exist",
	"250 Receiver ok",
	"221 Goodbye",
}

SuccessServer contents success smtp server response

Functions

func Server

func Server(
	t testing.TB,
	server []string,
	timeout time.Duration,
	addr string,
	infinite bool,
) (string, chan string)

Server to testing SMTP Partial copy of TestSendMail from smtp.TestSendMail

Types

This section is empty.

Directories

Path Synopsis
Package mocksmtpclient is a generated GoMock package.
Package mocksmtpclient is a generated GoMock package.

Jump to

Keyboard shortcuts

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