email

package
v0.0.0-...-04efeb6 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ByAll           = "all"
	ByEmail         = "email"
	ByMessagePusher = "message_pusher"
)

Variables

This section is empty.

Functions

func EmailTemplate

func EmailTemplate(title, content string) string

EmailTemplate 生成美观的 HTML 邮件内容

func SendEmail

func SendEmail(subject, receiver, content string) error

SendEmail 使用全局 SMTP 配置发送邮件

func SendEmailWithConfig

func SendEmailWithConfig(mailCfg config.MailConfig, subject, receiver, content string) error

SendEmailWithConfig 根据传入的配置发送邮件

func SendMessage

func SendMessage(title, description, content string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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