mail

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email struct {
	From    From
	To      []string
	Cc      []string
	Bcc     []string
	Subject string
	Text    []byte
	HTML    []byte
}

type From

type From struct {
	Address string
	Name    string
}

func DefaultFrom

func DefaultFrom(c *conf.Mail) From

type Sender

type Sender interface {
	Send(ctx context.Context, email Email) error
}

func NewSender

func NewSender(c *conf.Mail) Sender

Jump to

Keyboard shortcuts

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