smtptest

package
v0.0.0-...-dbbe934 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 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 {
	Subject string
	From    string
	To      []string
	CC      []string
	BCC     []string
	Body    string
	// contains filtered or unexported fields
}

type Option

type Option func(s Server)

func WithCredentials

func WithCredentials(username, password string) Option

type Server

type Server interface {
	Port() int32
	Messages(username, password string) chan Message
	Close() error
}

func NewServer

func NewServer(opts ...Option) Server

Jump to

Keyboard shortcuts

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