mail

package
v0.0.0-...-94e6d93 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(cfg *config.Config) error

Init configuration based parts of the mail package

func SendRegistrationMail

func SendRegistrationMail(ctx context.Context, cfg *config.Config, params RegMailParams) error

SendRegistrationMail sends a registration mail

func SendResetMail

func SendResetMail(ctx context.Context, cfg *config.Config, params ResetMailParams) error

SendResetMail sends a password reset mail

Types

type RegMailParams

type RegMailParams struct {
	To       string
	Username string
	Token    string
	// This field will be set automatically
	BaseURL string
}

RegMailParams contains the values that will be passed to the mail template

type ResetMailParams

type ResetMailParams struct {
	To       string
	Found    bool
	Username string
	Token    string
	// This field will be set automatically
	BaseURL string
}

ResetMailParams contains the values that will be passed to the mail template

Jump to

Keyboard shortcuts

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