Help us shape the future of Go! Take the 2026 Go Developer Survey

email

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: GPL-3.0 Imports: 2 Imported by: 3

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