email

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(emailConfig *ec.Email, watch func(string, config.Observer) error)

Types

type Email

type Email interface {
	Dialer() (Sender, error)
}

func Instance

func Instance() Email

Instance 获取email对象实例

type Sender

type Sender interface {
	Template(name string) *sender
	Pool(is bool) *sender
	Send(u string, variable ...interface{}) error
	SendAll(us []string, variable ...interface{}) error
}

Jump to

Keyboard shortcuts

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