email

package
v0.0.0-...-1ac7f4f Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 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 *config.Email, watcher config.Watcher)

Types

type Email

type Email interface {
	Template(name string) Sender
}

func Instance

func Instance() Email

Instance 获取email对象实例

type Message

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

func NewMessage

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

func (*Message) Name

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