mailutil

package
v0.0.0-...-07bc221 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckBeacon

func CheckBeacon(c *gin.Context, mail string) (bool, error)

CheckBeacon @description: 检查邮件发送信标 避免频繁发信

func CreateBeacon

func CreateBeacon(c *gin.Context, mail string, timeout time.Duration) error

CreateBeacon @description: 创建邮件发送信标

func DeleteBeacon

func DeleteBeacon(c *gin.Context, mail string)

DeleteBeacon @description: 手动删除邮件创建新信标

func Send

func Send(mail Mail, platform MailPlatform) error

func SendByAliyun

func SendByAliyun(mail Mail) error

Types

type Mail

type Mail struct {
	Subject   string
	Content   string
	ToAddress string
	Typ       string // 邮件类型
}

type MailPlatform

type MailPlatform string
const (
	MailPlatformAliyun MailPlatform = "aliyun"
)

Jump to

Keyboard shortcuts

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