email

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(conf *ec.Email, watcher *watcher.Watcher)

Types

type Email

type Email interface {
	Template(name string) Sender
}

func Instance

func Instance() Email

Instance 获取email对象实例

type Message added in v1.0.2

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

func NewMessage added in v1.0.2

func NewMessage(email string, fs ...func(*Message)) *Message

func (*Message) Name added in v1.0.2

func (msg *Message) Name(val string)

Name 设置接受者者名称

type Sender

type Sender interface {
	Send(u string, name string, variable ...any) error
}

Jump to

Keyboard shortcuts

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