smtp

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Send(ctx context.Context, msg *converter.Message) (int, error)
	Close() error
}

Client exposes the methods of the SMTP client

func New

func New(addr string, logger zerolog.Logger) Client

New creates a new Go native SMTP client

type Stub added in v1.1.0

type Stub struct {
	SentCount int
	Err       error
}

Stub is a test struct that implements Client

func (*Stub) Close added in v1.1.0

func (s *Stub) Close() error

Close implements the Client.Close() method

func (*Stub) Send added in v1.1.0

func (s *Stub) Send(_ context.Context, _ *converter.Message) (int, error)

Send implements the Client.Send() method

Jump to

Keyboard shortcuts

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