mail

package
v0.0.0-...-f1c6d0e Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mailer

type Mailer struct {
	// Config
	Host           string
	Port           int
	Username       string
	Password       string
	Encryption     string
	Auth           string
	KeepAlive      bool
	ConnectTimeout time.Duration
	SendTimeout    time.Duration
	Debug          bool

	L *zerolog.Logger
	B *i18n.Bundle

	// This Server Info
	DB      *db.DB
	WebHost string
	// contains filtered or unexported fields
}

func New

func New(bg context.Context, l *zerolog.Logger, b *i18n.Bundle, apc app.APCoreConfig, c *config.Config, db *db.DB, debug bool) *Mailer

func (*Mailer) SendValidationEmail

func (m *Mailer) SendValidationEmail(c context.Context, userID, to, token string, lang language.Tag) error

func (*Mailer) Start

func (m *Mailer) Start() error

func (*Mailer) Stop

func (m *Mailer) Stop()

Jump to

Keyboard shortcuts

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