mailer

package
v0.0.0-...-a942fbd Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmailTemplateNotFound = errors.New("email template not found")
)

Functions

This section is empty.

Types

type Mailer

type Mailer struct {
	Config    config.Mailer
	Transport transport.MailTransporter
	Templates map[string]*template.Template
}

func New

func New(config config.Mailer, transport transport.MailTransporter) *Mailer

func (*Mailer) ParseTemplates

func (m *Mailer) ParseTemplates() error

func (*Mailer) SendPasswordReset

func (m *Mailer) SendPasswordReset(ctx context.Context, to string, passwordResetLink string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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