smtp

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Empty error to hide internal message.
	Err error = errors.New("")
)

Functions

func New

func New(options ...Option) *smtp.Server

New returns a smtp server.

Types

type Logger

type Logger interface {
	Info(msg string, args ...any)
	Error(msg string, args ...any)
}

type Option

type Option func(*backend)

func WithLogger

func WithLogger(logger Logger) Option

WithLogger sets Logger into a smtp server.

func WithSessionOptions

func WithSessionOptions(options ...session.Option) Option

WithSessionOptions sets mailbox.Option into a smtp server.

Jump to

Keyboard shortcuts

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