email

package
v0.0.0-...-53bd342 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emailer

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

Emailer is used to send emails to customers.

func New

func New(address string, password string, host string, port string, links Links) *Emailer

New builds and returns a ready-to-use Emailer.

func (*Emailer) SendActivationToken

func (e *Emailer) SendActivationToken(token string, to string) error

SendActivationToken attempts to send the passed token to the specified user.

func (*Emailer) SendRecoveryToken

func (e *Emailer) SendRecoveryToken(token string, to string) error

SendRecoveryToken attempts to send the passed token to the specified user.

type Links struct {
	RecoveryURL   string
	ActivationURL string
}

Links contains URLs to be send to customers via email.

Jump to

Keyboard shortcuts

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