email

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	SMTPHost    string
	SMTPPort    string
	Username    string
	Password    string
	FromAddress string
}

func FromEnv

func FromEnv() Conf

type Sender

type Sender struct {
	Conf Conf
}

func NewSender

func NewSender(conf Conf) *Sender

func (*Sender) SendEmail

func (s *Sender) SendEmail(to, subject, body string) error

SendEmail 发送邮件 to: 收件人邮箱 subject: 邮件主题 body: 邮件正文(HTML格式)

Jump to

Keyboard shortcuts

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