mailer

package
v0.0.0-...-1df1458 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, db *store.Store, sender Sender, interval time.Duration) error

Types

type File

type File struct {
	Dir string
}

func (File) Send

func (f File) Send(_ context.Context, message store.OutboxMessage) error

type SMTP

type SMTP struct {
	Addr, User, Password, From string
}

func (SMTP) Send

func (s SMTP) Send(_ context.Context, message store.OutboxMessage) error

type Sender

type Sender interface {
	Send(context.Context, store.OutboxMessage) error
}

Jump to

Keyboard shortcuts

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