memory

package
v0.0.0-...-8001585 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(u *url.URL) mailerkit.Mailer

New returns a new in-memory mailer implementation.

Types

type Mailer

type Mailer struct {
	// contains filtered or unexported fields
}

MemoryMailer stores mails in memory for testing purposes.

func (*Mailer) Reset

func (m *Mailer) Reset()

Reset clears any recorded mails.

func (*Mailer) Send

func (m *Mailer) Send(ctx context.Context, mail mailerkit.Mail) error

Send records the mail in memory.

func (*Mailer) Sent

func (m *Mailer) Sent() []mailerkit.Mail

Sent returns a copy of all mails sent so far.

Jump to

Keyboard shortcuts

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