mailer

package
v1.10.5 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MulanPSL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MailerConfig = struct {
	Host        string            `yaml:"host"`
	Port        int               `yaml:"port"`
	FromAddress string            `yaml:"fromAddress"`
	Password    string            `yaml:"password"`
	Mailers     []Mailer          `yaml:"mailers"`
	MailerMap   map[string]Mailer `json:"-"`
}{}

Functions

func Init

func Init()

func SendLicenseMail added in v1.9.18

func SendLicenseMail(targetEmail, license string) (err error)

func SendNewAuthCodeMail

func SendNewAuthCodeMail(targetEmail, authCode string) (seqNo string, err error)

func SendResetPwdValidateMail

func SendResetPwdValidateMail(targetEmail, authCode string) (seqNo string, err error)

Types

type Mailer

type Mailer struct {
	Code    string         `yaml:"code"`
	Subject string         `yaml:"subject"`
	Content string         `yaml:"content"`
	Type    string         `yaml:"type"`
	Dialer  *gomail.Dialer `json:"-" yaml:"-"`
}

Jump to

Keyboard shortcuts

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