email

package
v0.0.0-...-63964f8 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email struct {
	*SMTPInfo
}

func NewEmail

func NewEmail(info *SMTPInfo) *Email

func (*Email) SendMail

func (e *Email) SendMail(to []string, subject, body string) error

type SMTPInfo

type SMTPInfo struct {
	Host     string
	Port     int
	IsSSL    bool
	UserName string
	Password string
	From     string
}

SMTPInfo 传递发送邮箱所必需的信息

Jump to

Keyboard shortcuts

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