mailer

package
v0.0.0-...-38bf20c Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 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